mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
upgrade to electron v16 and node v16
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user