diff --git a/src/main/main.ts b/src/main/main.ts index 7230e4d..ad2c78a 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -59,16 +59,6 @@ function init() { app.commandLine.appendSwitch("disable-smooth-scrolling"); } - // disable renderer backgrounding to prevent the app from unloading when in the background - // https://github.com/electron/electron/issues/2822 - // https://github.com/GoogleChrome/chrome-launcher/blob/5a27dd574d47a75fec0fb50f7b774ebf8a9791ba/docs/chrome-flags-for-tools.md#task-throttling - app.commandLine.appendSwitch("disable-renderer-backgrounding"); - app.commandLine.appendSwitch("disable-background-timer-throttling"); - app.commandLine.appendSwitch("disable-backgrounding-occluded-windows"); - if (process.platform === "win32") { - disabledFeatures.add("CalculateNativeWinOcclusion"); - } - // work around chrome 66 disabling autoplay by default app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required");