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 committed May 29, 2024
1 parent 82a64ff commit 569e7ff
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 @@ -243,6 +243,7 @@ function buildChannelSubButton(channelHandle) {
} else {
console.log('Unknown state');
}
e.stopPropagation();
});
Object.assign(channelSubButton.style, {
padding: '5px',
Expand Down Expand Up @@ -304,6 +305,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 569e7ff

Please sign in to comment.