This commit is contained in:
The Ghost of FOSS' Past 2024-10-28 11:57:09 -05:00
parent 58dc0dfe1d
commit 9a0293a6e1

View file

@ -33,11 +33,11 @@ document.getElementById('search-button').addEventListener('click', async () => {
//const url = window.URL.createObjectURL(blob); //const url = window.URL.createObjectURL(blob);
const a = document.createElement('a'); const a = document.createElement('a');
a.style.display = 'none'; a.style.display = 'none';
a.href = url; a.href = downloadResponse;
//a.download = 'video.mp4'; // You might want to set this dynamically //a.download = 'video.mp4'; // You might want to set this dynamically
document.body.appendChild(a); document.body.appendChild(a);
a.click(); //a.click();
window.URL.revokeObjectURL(url); //window.URL.revokeObjectURL(url);
}); });
}); });