Stop click propagating to elements behind download/subscribe buttons (#40)

This commit is contained in:
Ritiek Malhotra 2024-07-01 23:48:33 +05:30 committed by GitHub
parent d3f01b372a
commit 967a52881b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -245,6 +245,7 @@ function buildChannelSubButton(channelHandle) {
} else {
console.log('Unknown state');
}
e.stopPropagation();
});
Object.assign(channelSubButton.style, {
padding: '5px',
@ -306,6 +307,7 @@ function buildChannelDownloadButton() {
e.preventDefault();
console.log(`download: ${currentLocation}`);
sendDownload(channelDownloadButton);
e.stopPropagation();
});
Object.assign(channelDownloadButton.style, {
filter: 'invert()',