diff --git a/src/routes/convert/+page.svelte b/src/routes/convert/+page.svelte index 89a843e..97e2771 100644 --- a/src/routes/convert/+page.svelte +++ b/src/routes/convert/+page.svelte @@ -54,6 +54,12 @@ window.addEventListener("resize", () => { isSm = window.innerWidth < 640; }); + + // reloads the "output filename" option + const savedOption = localStorage.getItem('outputFilename'); + if (savedOption) { + outputFilename = savedOption; + } }); let disabled = $derived(files.files.some((f) => !f.result)); @@ -149,7 +155,7 @@ const url = URL.createObjectURL(blob); const a = document.createElement("a"); a.href = url; - a.download = `VERT-Converted_${new Date().toISOString()}.zip`; + a.download = `VERT-Converted_${date}.zip`; a.click(); URL.revokeObjectURL(url); a.remove(); @@ -183,7 +189,7 @@