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

@@ -42,8 +42,7 @@ export default class HistoryNavigationWidget extends BasicWidget {
this.$forwardInHistory = this.$widget.find("[data-trigger-command='forwardInNoteHistory']");
this.$forwardInHistory.on('contextmenu', contextMenuHandler);
const electron = utils.dynamicRequire('electron');
this.webContents = electron.remote.getCurrentWindow().webContents;
this.webContents = utils.dynamicRequire('@electron/remote').webContents;
// without this the history is preserved across frontend reloads
this.webContents.clearHistory();