mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
upgrade to electron v16 and node v16
This commit is contained in:
@@ -7,7 +7,7 @@ function getFileUrl(noteId) {
|
||||
|
||||
function download(url) {
|
||||
if (utils.isElectron()) {
|
||||
const remote = utils.dynamicRequire('electron').remote;
|
||||
const remote = utils.dynamicRequire('@electron/remote');
|
||||
|
||||
remote.getCurrentWebContents().downloadURL(url);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user