fix #595 file input cannot be selected [remote module is disabled by default].

This commit is contained in:
qishibo 2021-06-29 20:22:21 +08:00
parent 00390cf530
commit 75a0b0be7f

View File

@ -28,6 +28,8 @@ function createWindow() {
autoHideMenuBar: true,
webPreferences: {
nodeIntegration: true,
// add this to keep 'remote' module avaiable. Tips: it will be removed in electron 14
enableRemoteModule: true,
},
});