mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Add visible option to show tab when ready
This commit is contained in:
parent
d6588fd2e7
commit
e7f8111e03
3
index.js
3
index.js
|
@ -130,6 +130,9 @@ class Tab extends EventEmitter {
|
||||||
this.tabElements = {};
|
this.tabElements = {};
|
||||||
TabPrivate.initTab.bind(this)();
|
TabPrivate.initTab.bind(this)();
|
||||||
TabPrivate.initWebview.bind(this)();
|
TabPrivate.initWebview.bind(this)();
|
||||||
|
if (args.visible) {
|
||||||
|
this.show();
|
||||||
|
}
|
||||||
if (typeof args.ready === "function") {
|
if (typeof args.ready === "function") {
|
||||||
args.ready(this);
|
args.ready(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue