禁用gpu沙盒
This commit is contained in:
@@ -62,6 +62,8 @@ export const applyElectronEnvParams = () => {
|
||||
// https://github.com/electron/electron/issues/22691
|
||||
app.commandLine.appendSwitch('wm-window-animations-disabled')
|
||||
|
||||
app.commandLine.appendSwitch('--disable-gpu-sandbox')
|
||||
|
||||
// proxy
|
||||
if (global.envParams.cmdParams['proxy-server']) {
|
||||
app.commandLine.appendSwitch('proxy-server', global.envParams.cmdParams['proxy-server'])
|
||||
|
||||
@@ -124,8 +124,11 @@ export const createWindow = () => {
|
||||
skipTaskbar: true,
|
||||
webPreferences: {
|
||||
contextIsolation: false,
|
||||
webSecurity: !global.isDev,
|
||||
webSecurity: false,
|
||||
sandbox: false,
|
||||
nodeIntegration: true,
|
||||
enableWebSQL: false,
|
||||
webgl: false,
|
||||
spellcheck: false, // 禁用拼写检查器
|
||||
},
|
||||
})
|
||||
|
||||
@@ -78,8 +78,11 @@ export const createWindow = () => {
|
||||
webPreferences: {
|
||||
nodeIntegrationInWorker: true,
|
||||
contextIsolation: false,
|
||||
webSecurity: !global.isDev,
|
||||
webSecurity: false,
|
||||
nodeIntegration: true,
|
||||
sandbox: false,
|
||||
enableWebSQL: false,
|
||||
webgl: false,
|
||||
spellcheck: false, // 禁用拼写检查器
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user