Skip to content

Commit

Permalink
upgrade electorn to v11.1 to support apple M1
Browse files Browse the repository at this point in the history
  • Loading branch information
listen1 committed Dec 23, 2020
1 parent b8d8fd7 commit cd70e10
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ const createFloatingWindow = function () {
alwaysOnTop:true,
visibleOnAllWorkspaces: true,
webPreferences: {
nodeIntegration: true
nodeIntegration: true,
enableRemoteModule: true,
}
});
floatingWindow.setPosition(floatingWindow.getPosition()[0], display.bounds.height - 150);
Expand Down Expand Up @@ -206,7 +207,7 @@ function createWindow() {
mainWindow = new BrowserWindow({
width: 1000,
height: 670,
webPreferences: {'nodeIntegration': true},
webPreferences: {'nodeIntegration': true, enableRemoteModule: true},
icon: iconPath,
titleBarStyle: 'hiddenInset',
transparent: transparent,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
}
},
"devDependencies": {
"electron": "^8.2.3",
"electron": "^11.1.1",
"electron-builder": "^22.5.1"
},
"dependencies": {
"electron-debug": "^1.5.0"
}
}
}

0 comments on commit cd70e10

Please sign in to comment.