mirror of
https://github.com/zadam/trilium.git
synced 2025-03-13 00:05:15 +08:00
prevent drag & drop to navigate away from trilium
This commit is contained in:
parent
58362405c6
commit
7d456240a8
1 changed files with 5 additions and 0 deletions
5
index.js
5
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;
|
return win;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue