Add visible option to show tab when ready

This commit is contained in:
Thomas Brouard 2016-11-01 15:16:38 +01:00
parent d6588fd2e7
commit e7f8111e03

View file

@ -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);
} }