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

@@ -59,7 +59,6 @@ async function createMainWindow() {
height: mainWindowState.height,
title: 'Trilium Notes',
webPreferences: {
enableRemoteModule: true,
nodeIntegration: true,
contextIsolation: false,
spellcheck: spellcheckEnabled
@@ -76,6 +75,8 @@ async function createMainWindow() {
const {webContents} = mainWindow;
require("@electron/remote/main").enable(webContents);
webContents.on('new-window', (e, url) => {
if (url !== webContents.getURL()) {
e.preventDefault();