possible fix for not working downloads
This commit is contained in:
parent
9d39f7178d
commit
08b093b63c
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user