fix download

This commit is contained in:
The Ghost of FOSS' Past 2024-10-28 12:55:56 -05:00
parent dadd64514e
commit 2912d110c1

View file

@ -34,7 +34,7 @@ document.getElementById('search-button').addEventListener('click', async () => {
const a = document.createElement('a');
a.style.display = 'none';
a.href = url;
a.download = `${video.title}.webm`; // You might want to set this dynamically
a.download = `${e.target.dataset.title}.webm`; // You might want to set this dynamically
document.body.appendChild(a);
window.URL.revokeObjectURL(url);
});