fix: remove offscreen mode from headless Electron windows (#8351)

This commit is contained in:
Luke Page
2020-08-27 18:34:08 +02:00
committed by GitHub
parent 603ecb9b17
commit c8f4140da3

View File

@@ -145,7 +145,6 @@ export function create (projectRoot, _options: WindowOptions = {}, newBrowserWin
if (options.show === false) {
options.frame = false
options.webPreferences.offscreen = true
}
options.webPreferences.webSecurity = !!options.chromeWebSecurity