diff --git a/package.json b/package.json index cde7198c..735eaf38 100644 --- a/package.json +++ b/package.json @@ -259,7 +259,7 @@ "cross-env": "^7.0.3", "dotenv": "^8.2.0", "dotenv-expand": "^5.1.0", - "electron": "^9.4.0", + "electron": "^11.3.0", "electron-builder": "22.9.1", "electron-notarize": "1.0.0", "eslint": "^7.17.0", diff --git a/public/electron.js b/public/electron.js index ac071d25..ff732e1f 100644 --- a/public/electron.js +++ b/public/electron.js @@ -89,7 +89,9 @@ function createWindow(port = DEFAULT_PORT) { height: 768, webPreferences: { preload: path.join(__dirname, '../scripts/preload.js'), - allowRunningInsecureContent: true, + experimentalFeatures: true, + nodeIntegration: true, + // allowRunningInsecureContent: true, enableRemoteModule: true, nativeWindowOpen: true, // need to be set in order to display modal }, diff --git a/yarn.lock b/yarn.lock index d92cbffd..4c0d54ba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8545,10 +8545,10 @@ electron-updater@4.3.5: lodash.isequal "^4.5.0" semver "^7.3.2" -electron@^9.4.0: - version "9.4.4" - resolved "https://registry.yarnpkg.com/electron/-/electron-9.4.4.tgz#2a74a0655a74bd326216672c5ae6ed3a44451446" - integrity sha512-dcPlTrMWQu5xuSm6sYV42KK/BRIqh3erM8v/WtZqaDmG7pkCeJpvw26Dgbqhdt78XmqqGiN96giEe6A3S9vpAQ== +electron@^11.3.0: + version "11.3.0" + resolved "https://registry.yarnpkg.com/electron/-/electron-11.3.0.tgz#87e8528fd23ae53b0eeb3a738f1fe0a3ad27c2db" + integrity sha512-MhdS0gok3wZBTscLBbYrOhLaQybCSAfkupazbK1dMP5c+84eVMxJE/QGohiWQkzs0tVFIJsAHyN19YKPbelNrQ== dependencies: "@electron/get" "^1.0.1" "@types/node" "^12.0.12"