Skip to content

Commit f7cbdba

Browse files
committed
upgrade electron to version 12
1 parent 6a8d90e commit f7cbdba

File tree

3 files changed

+402
-148
lines changed

3 files changed

+402
-148
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ const createWindow = () => {
3030
show: false,
3131
webPreferences: {
3232
backgroundThrottling: false,
33-
nodeIntegration: true
33+
contextIsolation: false,
34+
enableRemoteModule: true,
35+
nodeIntegration: true,
36+
worldSafeExecuteJavaScript: false
3437
}
3538
})
3639
mainWindowState.manage(mainWindow)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dependencies": {
1919
"@emotion/react": "^11.9.3",
2020
"date-fns": "^1.28.2",
21-
"electron": "^5.0.13",
21+
"electron": "^12.2.3",
2222
"electron-window-state": "^4.1.0",
2323
"fuzzy-search": "^1.4.0",
2424
"in-view": "^0.6.1",
@@ -57,6 +57,6 @@
5757
]
5858
},
5959
"browserslist": [
60-
"electron 5.0.13"
60+
"electron 12.2.3"
6161
]
6262
}

0 commit comments

Comments
 (0)