Skip to content

Commit

Permalink
Stop click propagating to elements behind download/subscribe buttons (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiek authored Jul 1, 2024
1 parent d3f01b3 commit 967a528
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extension/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ function buildChannelSubButton(channelHandle) {
} else {
console.log('Unknown state');
}
e.stopPropagation();
});
Object.assign(channelSubButton.style, {
padding: '5px',
Expand Down Expand Up @@ -306,6 +307,7 @@ function buildChannelDownloadButton() {
e.preventDefault();
console.log(`download: ${currentLocation}`);
sendDownload(channelDownloadButton);
e.stopPropagation();
});
Object.assign(channelDownloadButton.style, {
filter: 'invert()',
Expand Down

0 comments on commit 967a528

Please sign in to comment.