diff --git a/static/audioplayer.js b/static/audioplayer.js index 5b920c2..1834b18 100644 --- a/static/audioplayer.js +++ b/static/audioplayer.js @@ -119,6 +119,8 @@ async function downloadAudio() { // Create a “real” link to that URL and click it const a = document.createElement('a'); a.href = downloadUrl.toString(); + a.download = ''; // tell Safari “this is a download” + a.target = '_blank'; // force a real navigation on iOS // NOTE: do NOT set a.download here – we want the server's Content-Disposition to drive it document.body.appendChild(a); a.click();