diff --git a/app/package.json b/app/package.json index a3ae6655..5d3f50d2 100644 --- a/app/package.json +++ b/app/package.json @@ -47,7 +47,7 @@ "devDependencies": { "copyfiles": "^2.2.0", "cross-env": "^6.0.3", - "electron": "8.1.1", + "electron": "11.1.1", "electron-builder": "22.9.1" } } diff --git a/app/src/electron.js b/app/src/electron.js index 6ca43ff1..1cb77adc 100644 --- a/app/src/electron.js +++ b/app/src/electron.js @@ -118,11 +118,12 @@ function createWindow() { width: 1200, height: 800, title: 'DbGate', - icon: os.platform() == 'win32' ? 'icon.ico' : 'icon512.png', + icon: os.platform() == 'win32' ? 'icon.ico' : 'icon.png', ...bounds, show: false, webPreferences: { nodeIntegration: true, + enableRemoteModule: true, }, }); diff --git a/app/yarn.lock b/app/yarn.lock index ae95f588..83455610 100644 --- a/app/yarn.lock +++ b/app/yarn.lock @@ -645,10 +645,10 @@ electron-updater@^4.3.1: lodash.isequal "^4.5.0" semver "^7.1.3" -electron@8.1.1: - version "8.1.1" - resolved "https://registry.yarnpkg.com/electron/-/electron-8.1.1.tgz#737a5af03c7b4af60b49dff7bfe1203fcbd5bf89" - integrity sha512-t+5zzFo7VOgckJc9YpImHJkpqeWxwpmEjywWbAa4IT5MULS7h1XU52H9gMswK/y8xc5lBNwxLhJSty/15+gi1A== +electron@11.1.1: + version "11.1.1" + resolved "https://registry.yarnpkg.com/electron/-/electron-11.1.1.tgz#188f036f8282798398dca9513e9bb3b10213e3aa" + integrity sha512-tlbex3xosJgfileN6BAQRotevPRXB/wQIq48QeQ08tUJJrXwE72c8smsM/hbHx5eDgnbfJ2G3a60PmRjHU2NhA== dependencies: "@electron/get" "^1.0.1" "@types/node" "^12.0.12"