chore: update to electron v16

This commit is contained in:
4gray committed 2022-01-25 00:04:21 +01:00
1 parent 98ff7f4fa4
commit de50d5b42c
5 files changed
+896 -875

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ export abstract class DataService {
return !!(window && window.process && (window.process as any).type);
}
get remote() {
return this.isElectron ? window.require('electron').remote : null;
return this.isElectron ? window.require('@electron/remote') : null;
}
get ipcRenderer(): typeof ipcRenderer {
return this.isElectron ? window.require('electron').ipcRenderer : null;