diff --git a/app/play/page.tsx b/app/play/page.tsx index c88cfb5..5c83ce5 100644 --- a/app/play/page.tsx +++ b/app/play/page.tsx @@ -1027,28 +1027,28 @@ function PlayInner() { // way; this happens in the background. Server returns 503 if // GALLERY_SECRET isn't configured, in which case we silently skip — the // local view still works, just no share file. - void (async () => { - try { - const r = await fetch("/api/gallery-pack", { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ docStr }), - }); - if (!r.ok) return; - const blob = await r.blob(); - const url = URL.createObjectURL(blob); - const a = document.createElement("a"); - a.href = url; - a.download = `infiplot-${id}.infiplot`; - a.rel = "noopener"; - document.body.appendChild(a); - a.click(); - a.remove(); - setTimeout(() => URL.revokeObjectURL(url), 2000); - } catch { - // network / decrypt error — local view above already worked - } - })(); + // void (async () => { + // try { + // const r = await fetch("/api/gallery-pack", { + // method: "POST", + // headers: { "Content-Type": "application/json" }, + // body: JSON.stringify({ docStr }), + // }); + // if (!r.ok) return; + // const blob = await r.blob(); + // const url = URL.createObjectURL(blob); + // const a = document.createElement("a"); + // a.href = url; + // a.download = `infiplot-${id}.infiplot`; + // a.rel = "noopener"; + // document.body.appendChild(a); + // a.click(); + // a.remove(); + // setTimeout(() => URL.revokeObjectURL(url), 2000); + // } catch { + // // network / decrypt error — local view above already worked + // } + // })(); }, [trimGalleryExports]); const handleExportStory = useCallback(() => {