mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-12 15:10:13 +00:00
Stop click propagating to elements behind download/subscribe buttons (#40)
This commit is contained in:
parent
d3f01b372a
commit
967a52881b
@ -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()',
|
||||
|
Loading…
Reference in New Issue
Block a user