Add visible option to show tab when ready
This commit is contained in:
parent
d6588fd2e7
commit
e7f8111e03
1 changed files with 3 additions and 0 deletions
3
index.js
3
index.js
|
@ -130,6 +130,9 @@ class Tab extends EventEmitter {
|
|||
this.tabElements = {};
|
||||
TabPrivate.initTab.bind(this)();
|
||||
TabPrivate.initWebview.bind(this)();
|
||||
if (args.visible) {
|
||||
this.show();
|
||||
}
|
||||
if (typeof args.ready === "function") {
|
||||
args.ready(this);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue