Skip to content

Commit cb903c2

Browse files
author
Guillaume Chau
committed
chore: upgrade electron
1 parent 8401b90 commit cb903c2

File tree

3 files changed

+323
-316
lines changed

3 files changed

+323
-316
lines changed

packages/shell-electron/app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ function createWindow () {
1111
mainWindow = new BrowserWindow({
1212
width: 800,
1313
height: 600,
14-
icon: path.join(__dirname, 'icons/128.png')
14+
icon: path.join(__dirname, 'icons/128.png'),
15+
webPreferences: {
16+
nodeIntegration: true
17+
}
1518
})
1619

1720
mainWindow.loadURL(url.format({

packages/shell-electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"cross-spawn": "^5.1.0",
27-
"electron": "1.7.16",
27+
"electron": "^7.0.0",
2828
"express": "^4.16.2",
2929
"ip": "^1.1.5",
3030
"socket.io": "^2.0.4"

0 commit comments

Comments
 (0)