Skip to content

Commit

Permalink
patch electron-chrome-extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lleyton Gray committed Dec 6, 2021
1 parent 87c3ada commit 89cd43e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions patches/electron-chrome-extensions+3.9.0.patch
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()}`);
}

0 comments on commit 89cd43e

Please sign in to comment.