forked from wexond/browser-base
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lleyton Gray
committed
Dec 6, 2021
1 parent
87c3ada
commit 89cd43e
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/node_modules/electron-chrome-extensions/dist/index.js b/node_modules/electron-chrome-extensions/dist/index.js | ||
index e21b4d2..019c552 100644 | ||
--- a/node_modules/electron-chrome-extensions/dist/index.js | ||
+++ b/node_modules/electron-chrome-extensions/dist/index.js | ||
@@ -2631,7 +2631,8 @@ class TabsAPI { | ||
this.onRemoved(tabId); | ||
}); | ||
this.onCreated(tabId); | ||
- this.onActivated(tabId); | ||
+ const activeTab = this.ctx.store.getActiveTabFromWebContents(tab) | ||
+ if (activeTab?.id === tabId) this.onActivated(tabId); | ||
debug(`Observing tab[${tabId}][${tab.getType()}] ${tab.getURL()}`); | ||
} | ||
|