We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a91f51 commit 808b120Copy full SHA for 808b120
packages/electron-chrome-web-store/src/renderer/web-store-preload.ts
@@ -279,9 +279,12 @@ function setupChromeWebStoreApi() {
279
contextBridge.exposeInMainWorld('electronManagement', management)
280
281
webFrame.executeJavaScript(`
282
- chrome.webstorePrivate = globalThis.electronWebstore;
283
- chrome.runtime = globalThis.electronRuntime;
284
- chrome.management = globalThis.electronManagement;
+ (function () {
+ chrome.webstorePrivate = globalThis.electronWebstore;
+ Object.assign(chrome.runtime, electronRuntime);
285
+ Object.assign(chrome.management, electronManagement);
286
+ void 0;
287
+ }());
288
`)
289
290
// Fetch app name
0 commit comments