Skip to content

Commit e771392

Browse files
committed
upgrade to electron 5
1 parent 5cdaa5d commit e771392

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

main/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ function createWindowWithBounds (bounds, shouldMaximize) {
115115
icon: __dirname + '/icons/icon256.png',
116116
frame: process.platform !== 'win32',
117117
backgroundColor: '#fff', // the value of this is ignored, but setting it seems to work around https://github.com/electron/electron/issues/10559
118+
webPreferences: {
119+
nodeIntegration: true
120+
}
118121
})
119122

120123
// and load the index.html of the app.

main/viewManager.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ function createView (id, webPreferencesString, boundsString, events) {
1818
})
1919
})
2020

21-
view.webContents.on('ipc-message', function (e, data) {
21+
view.webContents.on('ipc-message', function (e, channel, data) {
2222
mainWindow.webContents.send('view-ipc', {
2323
id: id,
24-
name: data[0],
25-
data: data[1]
24+
name: channel,
25+
data: data
2626
})
2727
})
2828

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "min",
33
"productName": "Min",
44
"version": "1.9.1",
5-
"electronVersion": "4.0.5",
5+
"electronVersion": "5.0.0-beta.5",
66
"main": "main.build.js",
77
"dependencies": {
88
"dexie": "^1.2.0",

0 commit comments

Comments
 (0)