Skip to content

Commit

Permalink
keep the exported styles URL alive indefinitely
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Aug 2, 2018
1 parent d3c8812 commit e2c053f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manage/import-export.js
Expand Up @@ -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) {
Expand Down

0 comments on commit e2c053f

Please sign in to comment.