From 89cd43ed6f4338250c2e717ea1bf30b2b47e8e48 Mon Sep 17 00:00:00 2001 From: Lleyton Gray Date: Mon, 6 Dec 2021 02:40:25 -0800 Subject: [PATCH] patch electron-chrome-extensions --- patches/electron-chrome-extensions+3.9.0.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/electron-chrome-extensions+3.9.0.patch diff --git a/patches/electron-chrome-extensions+3.9.0.patch b/patches/electron-chrome-extensions+3.9.0.patch new file mode 100644 index 000000000..c5818a3f6 --- /dev/null +++ b/patches/electron-chrome-extensions+3.9.0.patch @@ -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()}`); + } +