From 9937f5a02a22b048c30108d767a62b894f579f61 Mon Sep 17 00:00:00 2001
From: b1rdmania <102524336+b1rdmania@users.noreply.github.com>
Date: Fri, 27 Feb 2026 15:41:07 +0000
Subject: [PATCH] fix: make MP3 downloads reliable again
Use bundled lamejs instead of a CDN global, and avoid browser user-gesture download blocking by preparing the MP3 first and downloading on a follow-up click.
Made-with: Cursor
---
index.html | 3 +-
src/lamejs.d.ts | 8 +++++
src/main.ts | 77 +++++++++++++++++++++++++++++++++++++++++--------
ux-test.html | 1 -
4 files changed, 74 insertions(+), 15 deletions(-)
create mode 100644 src/lamejs.d.ts
diff --git a/index.html b/index.html
index 0214dcf..06b7a9a 100644
--- a/index.html
+++ b/index.html
@@ -1301,7 +1301,6 @@
-