diff --git a/index.js b/index.js index 3a0d86174..02fbee0db 100644 --- a/index.js +++ b/index.js @@ -38,6 +38,11 @@ function createMainWindow() { } }); + // prevent drag & drop to navigate away from trilium + win.webContents.on('will-navigate', ev => { + ev.preventDefault() + }); + return win; }