Skip to content

Commit

Permalink
use current location for channel download url
Browse files Browse the repository at this point in the history
  • Loading branch information
bbilly1 committed Sep 3, 2023
1 parent ad2a6f3 commit fd87615
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions extension/script.js
Expand Up @@ -280,10 +280,9 @@ function buildChannelDownloadButton() {
channelDownloadButton.title = `TA download video: ${videoId}`;
checkVideoExists(channelDownloadButton);
} else {
let toDownload = urlObj.pathname.slice(1);
channelDownloadButton.setAttribute('data-id', toDownload);
channelDownloadButton.setAttribute('data-id', currentLocation);
channelDownloadButton.setAttribute('data-type', 'channel');
channelDownloadButton.title = `TA download channel ${toDownload}`;
channelDownloadButton.title = `TA download channel ${currentLocation}`;
}
channelDownloadButton.innerHTML = downloadIcon;
channelDownloadButton.addEventListener('click', e => {
Expand Down

0 comments on commit fd87615

Please sign in to comment.