Update electron web preferences
This commit is contained in:
parent
0320fe6dcc
commit
c8b1b4d394
1 changed files with 2 additions and 1 deletions
|
@ -189,6 +189,7 @@ const createWindow = async () => {
|
||||||
minWidth: 640,
|
minWidth: 640,
|
||||||
show: false,
|
show: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
allowRunningInsecureContent: !!store.get('ignore_ssl'),
|
||||||
backgroundThrottling: false,
|
backgroundThrottling: false,
|
||||||
contextIsolation: true,
|
contextIsolation: true,
|
||||||
devTools: true,
|
devTools: true,
|
||||||
|
@ -196,7 +197,7 @@ const createWindow = async () => {
|
||||||
preload: app.isPackaged
|
preload: app.isPackaged
|
||||||
? path.join(__dirname, 'preload.js')
|
? path.join(__dirname, 'preload.js')
|
||||||
: path.join(__dirname, '../../.erb/dll/preload.js'),
|
: path.join(__dirname, '../../.erb/dll/preload.js'),
|
||||||
webSecurity: store.get('ignore_cors') ? false : undefined,
|
webSecurity: !store.get('ignore_cors'),
|
||||||
},
|
},
|
||||||
width: 1440,
|
width: 1440,
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue