From 1c75a5876abd7845e61a6ce86b1edaf0822ee281 Mon Sep 17 00:00:00 2001 From: Liam Best Date: Tue, 24 Sep 2019 16:03:04 +1000 Subject: [PATCH] Add inactive event for the tab being made inactive --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 7a81246..0ba2357 100644 --- a/index.js +++ b/index.js @@ -284,6 +284,7 @@ class Tab extends EventEmitter { if (activeTab) { activeTab.tab.classList.remove("active"); activeTab.webview.classList.remove("visible"); + activeTab.emit("inactive", activeTab); } TabGroupPrivate.setActiveTab.bind(this.tabGroup)(this); this.tab.classList.add("active");