From e7f8111e031f78b67170acf77947a2a388ea5981 Mon Sep 17 00:00:00 2001 From: Thomas Brouard Date: Tue, 1 Nov 2016 15:16:38 +0100 Subject: [PATCH] Add visible option to show tab when ready --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 4612624..267fb02 100644 --- a/index.js +++ b/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); }