Skip to content

Build your personal knowledge base with Trilium Notes

prevent drag & drop to navigate away from trilium

azivner7d456240a8b7
diff --git a/index.js b/index.js
index 3a0d86174f..02fbee0db3 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;
}