Skip to content

Commit 808b120

Browse files
committed
fix: install -> uninstall web store extension
1 parent 2a91f51 commit 808b120

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/electron-chrome-web-store/src/renderer/web-store-preload.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,12 @@ function setupChromeWebStoreApi() {
279279
contextBridge.exposeInMainWorld('electronManagement', management)
280280

281281
webFrame.executeJavaScript(`
282-
chrome.webstorePrivate = globalThis.electronWebstore;
283-
chrome.runtime = globalThis.electronRuntime;
284-
chrome.management = globalThis.electronManagement;
282+
(function () {
283+
chrome.webstorePrivate = globalThis.electronWebstore;
284+
Object.assign(chrome.runtime, electronRuntime);
285+
Object.assign(chrome.management, electronManagement);
286+
void 0;
287+
}());
285288
`)
286289

287290
// Fetch app name

0 commit comments

Comments
 (0)