fix download
This commit is contained in:
parent
dadd64514e
commit
2912d110c1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue