From 98c36f913f62be1a5829052a6dc00873a6bedf16 Mon Sep 17 00:00:00 2001 From: w Date: Sun, 20 Jul 2025 01:01:54 -0300 Subject: [PATCH] Fix ZIP file naming in download functionality for card creator --- web/templates/card_creator.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/templates/card_creator.html b/web/templates/card_creator.html index 26d6819..ae7b5d5 100644 --- a/web/templates/card_creator.html +++ b/web/templates/card_creator.html @@ -347,6 +347,7 @@ zipBtn.onclick = async () => { const safePack = (packInput.value || "pack").replace(/[^a-z0-9_\-]/gi, "_"); const imgFileName = `kemoverse_${safePack}_${safeName}.webp`; const jsonFileName = `kemoverse_${safePack}_${safeName}.json`; + const zipFileName = `kemoverse_${safePack}_${safeName}.zip`; // Create ZIP const zip = new JSZip(); @@ -360,7 +361,7 @@ zipBtn.onclick = async () => { const content = await zip.generateAsync({type: "blob"}); const link = document.createElement("a"); link.href = URL.createObjectURL(content); - link.download = `kemoverse_${safePack}_${safeName}.zip`; + link.download = zipFileName; link.click(); };