From 86cf8f32027c48f3badc9f764deed060f468120e Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 27 Apr 2020 20:58:31 +0200 Subject: [PATCH] fix download/export --- src/public/app/services/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/app/services/utils.js b/src/public/app/services/utils.js index ad490c982..966f5c1fc 100644 --- a/src/public/app/services/utils.js +++ b/src/public/app/services/utils.js @@ -99,7 +99,7 @@ function download(url) { url += '?' + Date.now(); // don't use cache if (isElectron()) { - const remote = utils.dynamicRequire('electron').remote; + const remote = dynamicRequire('electron').remote; remote.getCurrentWebContents().downloadURL(url); } @@ -273,7 +273,7 @@ function isHtmlEmpty(html) { async function clearBrowserCache() { if (isElectron()) { - const win = utils.dynamicRequire('electron').remote.getCurrentWindow(); + const win = dynamicRequire('electron').remote.getCurrentWindow(); await win.webContents.session.clearCache(); } }