From e2c053f81baf3011ef7e6c9057932086964b5b66 Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 2 Aug 2018 14:19:03 +0300 Subject: [PATCH] keep the exported styles URL alive indefinitely --- manage/import-export.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manage/import-export.js b/manage/import-export.js index 18b841c1..425ea6cd 100644 --- a/manage/import-export.js +++ b/manage/import-export.js @@ -299,9 +299,9 @@ $('#file-all-styles').onclick = () => { }) .then(() => doTimeout()) .then(() => link.dispatchEvent(new MouseEvent('click'))) - .then(() => doTimeout(1000)) - .then(() => URL.revokeObjectURL(url)) - .then(() => iframe.remove()); + // we don't remove the iframe or the object URL because the browser may show + // a download dialog and we don't know how long it'll take until the user confirms it + // (some browsers like Vivaldi can't download if we revoke the URL) }); function doTimeout(ms) {