upgrade to electron v16 and node v16

This commit is contained in:
zadam
2021-11-16 22:43:08 +01:00
parent b7efc92099
commit 89322c4b03
17 changed files with 228 additions and 90 deletions

View File

@@ -34,7 +34,9 @@ noteAutocompleteService.init();
if (utils.isElectron()) {
const electron = utils.dynamicRequire('electron');
const {webContents} = electron.remote.getCurrentWindow();
const remote = utils.dynamicRequire('@electron/remote');
const {webContents} = remote.getCurrentWindow();
webContents.on('context-menu', (event, params) => {
const {editFlags} = params;