mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2025-07-17 14:38:16 +00:00
Merge 8abcd698fa582c132a73f716598aba49a9e12fca into 82a64ff4bac729e8253266aeafecc9a324884d41
This commit is contained in:
commit
55a5daea68
@ -437,11 +437,13 @@ function checkVideoExists(taButton) {
|
|||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!taButton.parentElement) return;
|
let videoId = taButton.dataset.id;
|
||||||
let videoId = getVideoId(taButton.parentElement);
|
if (taButton.parentElement) {
|
||||||
taButton.setAttribute('data-id', videoId);
|
videoId = getVideoId(taButton.parentElement);
|
||||||
taButton.setAttribute('data-type', 'video');
|
taButton.setAttribute('data-id', videoId);
|
||||||
taButton.title = `TA download video: ${taButton.parentElement.innerText} [${videoId}]`;
|
taButton.setAttribute('data-type', 'video');
|
||||||
|
taButton.title = `TA download video: ${taButton.parentElement.innerText} [${videoId}]`;
|
||||||
|
}
|
||||||
|
|
||||||
let message = { type: 'videoExists', videoId };
|
let message = { type: 'videoExists', videoId };
|
||||||
let sending = sendMessage(message);
|
let sending = sendMessage(message);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user