mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2025-04-20 10:20:11 +00:00
Stop click propagating to elements behind download/subscribe buttons
This commit is contained in:
parent
82a64ff4ba
commit
569e7ff532
@ -243,6 +243,7 @@ function buildChannelSubButton(channelHandle) {
|
|||||||
} else {
|
} else {
|
||||||
console.log('Unknown state');
|
console.log('Unknown state');
|
||||||
}
|
}
|
||||||
|
e.stopPropagation();
|
||||||
});
|
});
|
||||||
Object.assign(channelSubButton.style, {
|
Object.assign(channelSubButton.style, {
|
||||||
padding: '5px',
|
padding: '5px',
|
||||||
@ -304,6 +305,7 @@ function buildChannelDownloadButton() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
console.log(`download: ${currentLocation}`);
|
console.log(`download: ${currentLocation}`);
|
||||||
sendDownload(channelDownloadButton);
|
sendDownload(channelDownloadButton);
|
||||||
|
e.stopPropagation();
|
||||||
});
|
});
|
||||||
Object.assign(channelDownloadButton.style, {
|
Object.assign(channelDownloadButton.style, {
|
||||||
filter: 'invert()',
|
filter: 'invert()',
|
||||||
|
Loading…
Reference in New Issue
Block a user