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