diff --git a/editor/resources/index.html b/editor/resources/index.html index 7d8bd27..b6c87da 100644 --- a/editor/resources/index.html +++ b/editor/resources/index.html @@ -9,10 +9,11 @@ - Cloudflare Error Page Editor + + @@ -25,6 +26,8 @@ + + @@ -301,8 +304,7 @@ const blob = new Blob([lastRenderedHtml], { type: 'text/html' }); const url = URL.createObjectURL(blob); window.open(url, '_blank', 'noopener'); - // revoke after some time to avoid memory leak - setTimeout(() => URL.revokeObjectURL(url), 15_000); + // note that this url won't be revoked } function createShareableLink() { @@ -335,9 +337,9 @@ const file = new File([content], 'cloudflare-error-page-params.json', { type: 'text/plain', }) - const link = document.createElement('a') const url = URL.createObjectURL(file) + const link = document.createElement('a') link.href = url link.download = file.name document.body.appendChild(link) @@ -416,10 +418,6 @@ })()