mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Add inactive event for the tab being made inactive
This commit is contained in:
parent
1bfb560b0a
commit
1c75a5876a
1
index.js
1
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");
|
||||
|
|
Loading…
Reference in a new issue