From 75a0b0be7f5210e0d7513b1893da170dc7596d1a Mon Sep 17 00:00:00 2001 From: qishibo Date: Tue, 29 Jun 2021 20:22:21 +0800 Subject: [PATCH] fix #595 file input cannot be selected [remote module is disabled by default]. --- pack/electron/electron-main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pack/electron/electron-main.js b/pack/electron/electron-main.js index 41396a0..ed9ade6 100644 --- a/pack/electron/electron-main.js +++ b/pack/electron/electron-main.js @@ -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, }, });