Merge remote-tracking branch 'origin/stable'

This commit is contained in:
zadam
2020-04-29 22:27:46 +02:00
7 changed files with 9 additions and 8 deletions

View File

@@ -103,7 +103,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);
}
@@ -277,7 +277,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();
}
}