Skip to content

Commit 5fc9fdc

Browse files
committed
fix: attempt auto-download after animation encode
1 parent 9df5bd7 commit 5fc9fdc

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.changeset/auto-download.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"holosticker": patch
3+
---
4+
5+
Animation exports auto-download again after encoding, with the in-dialog Save button as fallback

src/App.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ export default function App() {
183183
if (prev) URL.revokeObjectURL(prev.url)
184184
return result
185185
})
186+
// attempt the download; if the browser drops it because the
187+
// click's activation expired, the Save button is right there
188+
const a = document.createElement("a")
189+
a.href = result.url
190+
a.download = result.filename
191+
a.click()
186192
}
187193
} finally {
188194
setExporting(false)

0 commit comments

Comments
 (0)