From fa870c2d708cccd31032c7eee83db6a1e46726fa Mon Sep 17 00:00:00 2001 From: OmegaRogue Date: Sun, 17 Sep 2023 22:11:22 +0200 Subject: [PATCH] :sparkles: Fix popouts without injecting javascript --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index 190be8f..cb3f1e7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,6 +26,8 @@ const createWindow = () => { webgl: true }, }); + // Fix Popouts + win.webContents.setUserAgent(win.webContents.getUserAgent().replace("Electron", "")); win.webContents.on('did-start-loading', () => { win.setTitle(app.getName() + ' * Loading ....'); win.setProgressBar(2, {mode: 'indeterminate'}) // second parameter optional