瀏覽代碼

Update to electron 15.0.0

Lutz Roeder 4 年之前
父節點
當前提交
6bb2a65240
共有 2 個文件被更改,包括 2 次插入6 次删除
  1. 1 1
      package.json
  2. 1 5
      source/app.js

+ 1 - 1
package.json

@@ -20,7 +20,7 @@
         "electron-updater": "4.3.9"
     },
     "devDependencies": {
-        "electron": "14.0.1",
+        "electron": "15.0.0",
         "electron-builder": "22.11.7",
         "electron-notarize": "1.1.1",
         "eslint": "7.32.0",

+ 1 - 5
source/app.js

@@ -320,8 +320,6 @@ class Application {
             fullscreenable: false,
             webPreferences: {
                 nodeIntegration: true,
-                contextIsolation: true,
-                nativeWindowOpen: true
             }
         };
         if (process.platform === 'darwin') {
@@ -693,9 +691,7 @@ class View {
             height: size.height > 768 ? 768 : size.height,
             webPreferences: {
                 preload: path.join(__dirname, 'electron.js'),
-                nodeIntegration: true,
-                contextIsolation: true,
-                nativeWindowOpen: true
+                nodeIntegration: true
             }
         };
         if (this._owner.count > 0 && View._position && View._position.length == 2) {