Add inactive event for the tab being made inactive

This commit is contained in:
Liam Best 2019-09-24 16:03:04 +10:00
parent 1bfb560b0a
commit 1c75a5876a

View file

@ -284,6 +284,7 @@ class Tab extends EventEmitter {
if (activeTab) { if (activeTab) {
activeTab.tab.classList.remove("active"); activeTab.tab.classList.remove("active");
activeTab.webview.classList.remove("visible"); activeTab.webview.classList.remove("visible");
activeTab.emit("inactive", activeTab);
} }
TabGroupPrivate.setActiveTab.bind(this.tabGroup)(this); TabGroupPrivate.setActiveTab.bind(this.tabGroup)(this);
this.tab.classList.add("active"); this.tab.classList.add("active");