keep the exported styles URL alive indefinitely
This commit is contained in:
parent
d3c8812e51
commit
e2c053f81b
|
@ -299,9 +299,9 @@ $('#file-all-styles').onclick = () => {
|
||||||
})
|
})
|
||||||
.then(() => doTimeout())
|
.then(() => doTimeout())
|
||||||
.then(() => link.dispatchEvent(new MouseEvent('click')))
|
.then(() => link.dispatchEvent(new MouseEvent('click')))
|
||||||
.then(() => doTimeout(1000))
|
// we don't remove the iframe or the object URL because the browser may show
|
||||||
.then(() => URL.revokeObjectURL(url))
|
// a download dialog and we don't know how long it'll take until the user confirms it
|
||||||
.then(() => iframe.remove());
|
// (some browsers like Vivaldi can't download if we revoke the URL)
|
||||||
});
|
});
|
||||||
|
|
||||||
function doTimeout(ms) {
|
function doTimeout(ms) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user