Browse Source

add delay before revoking the Blob URI

Gildas 3 years ago
parent
commit
5a5a351951
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/common/download.js

+ 1 - 1
src/core/common/download.js

@@ -98,7 +98,7 @@ async function downloadPageForeground(pageData) {
 		link.download = pageData.filename;
 		link.href = URL.createObjectURL(new Blob([pageData.content], { type: "text/html" }));
 		link.dispatchEvent(new MouseEvent("click"));
-		URL.revokeObjectURL(link.href);
+		setTimeout(() => URL.revokeObjectURL(link.href), 1000);
 	}
 	return new Promise(resolve => setTimeout(resolve, 1));
 }