更新依赖

This commit is contained in:
lyswhut
2021-09-04 21:24:42 +08:00
parent 488b28921f
commit af6a2ec581
5 changed files with 1220 additions and 567 deletions
+9 -1
View File
@@ -47,8 +47,16 @@ exports.createWindow = async userApi => {
show: false,
webPreferences: {
contextIsolation: true,
worldSafeExecuteJavaScript: true,
// worldSafeExecuteJavaScript: true,
nodeIntegration: false,
spellcheck: false,
autoplayPolicy: 'document-user-activation-required',
enableWebSQL: false,
disableDialogs: true,
webgl: false,
images: false,
preload: path.join(dir, 'renderer/preload.js'),
},
})