|
|
@ -358,15 +358,17 @@ function buildVideoButton(titleContainer) {
|
|
|
|
|
|
|
|
|
|
|
|
dlButton.addEventListener('click', e => {
|
|
|
|
dlButton.addEventListener('click', e => {
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault();
|
|
|
|
sendButton(dlButton);
|
|
|
|
sendDownload(dlButton);
|
|
|
|
e.stopPropagation();
|
|
|
|
e.stopPropagation();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
return dlButton;
|
|
|
|
return dlButton;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function sendButton(button) {
|
|
|
|
function sendDownload(button) {
|
|
|
|
console.log(button);
|
|
|
|
let url = button.dataset.id;
|
|
|
|
|
|
|
|
if (!url) return;
|
|
|
|
|
|
|
|
sendUrl(url, 'download', button);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function buttonError(button) {
|
|
|
|
function buttonError(button) {
|
|
|
|