refs #1012 Allow nodeIntegration for about window

This commit is contained in:
AkiraFukushima 2019-08-24 01:36:33 +09:00
parent bca210de80
commit 70819b7591
1 changed files with 6 additions and 1 deletions

View File

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