Update to Electron 11

This commit is contained in:
Geomitron
2021-01-30 23:06:44 -05:00
parent 2960d17686
commit cfe18da12b
4 changed files with 110 additions and 52 deletions

View File

@@ -56,11 +56,11 @@ export class ElectronService {
}
quit() {
this.electron.remote.app.quit()
this.electron.remote.app.exit()
}
openFolder(filepath: string) {
this.electron.shell.openItem(filepath)
this.electron.shell.openPath(filepath)
}
showFolder(filepath: string) {

View File

@@ -110,7 +110,8 @@ function createBrowserWindow(windowState: windowStateKeeper.State) {
webPreferences: {
nodeIntegration: true,
allowRunningInsecureContent: (isDevBuild) ? true : false,
textAreasAreResizable: false
textAreasAreResizable: false,
enableRemoteModule: true
},
simpleFullscreen: true,
fullscreenable: false