refs #1818 Change nodeIntegration to fix aboutWindow

This commit is contained in:
AkiraFukushima 2020-10-04 20:59:42 +09:00
parent 4f372a7cca
commit 99f8493638
1 changed files with 2 additions and 7 deletions

View File

@ -1276,14 +1276,9 @@ const ApplicationMenu = (accountsChange: Array<MenuItemConstructorOptions>, menu
click: () => {
openAboutWindow({
icon_path: path.resolve(__dirname, '../../build/icons/256x256.png'),
copyright: 'Copyright (c) 2018 AkiraFukushima',
copyright: 'Copyright (c) 2020 AkiraFukushima',
package_json_dir: path.resolve(__dirname, '../../'),
open_devtools: process.env.NODE_ENV !== 'production',
win_options: {
webPreferences: {
nodeIntegration: true
}
}
open_devtools: process.env.NODE_ENV !== 'production'
})
}
},