mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 11:40:13 +00:00
use current location for channel download url
This commit is contained in:
parent
ad2a6f3693
commit
fd87615cdc
@ -280,10 +280,9 @@ function buildChannelDownloadButton() {
|
|||||||
channelDownloadButton.title = `TA download video: ${videoId}`;
|
channelDownloadButton.title = `TA download video: ${videoId}`;
|
||||||
checkVideoExists(channelDownloadButton);
|
checkVideoExists(channelDownloadButton);
|
||||||
} else {
|
} else {
|
||||||
let toDownload = urlObj.pathname.slice(1);
|
channelDownloadButton.setAttribute('data-id', currentLocation);
|
||||||
channelDownloadButton.setAttribute('data-id', toDownload);
|
|
||||||
channelDownloadButton.setAttribute('data-type', 'channel');
|
channelDownloadButton.setAttribute('data-type', 'channel');
|
||||||
channelDownloadButton.title = `TA download channel ${toDownload}`;
|
channelDownloadButton.title = `TA download channel ${currentLocation}`;
|
||||||
}
|
}
|
||||||
channelDownloadButton.innerHTML = downloadIcon;
|
channelDownloadButton.innerHTML = downloadIcon;
|
||||||
channelDownloadButton.addEventListener('click', e => {
|
channelDownloadButton.addEventListener('click', e => {
|
||||||
|
Loading…
Reference in New Issue
Block a user