From 967a52881b796d3dd832d4445ca28120ec8cf5d4 Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Mon, 1 Jul 2024 23:48:33 +0530 Subject: [PATCH] Stop click propagating to elements behind download/subscribe buttons (#40) --- extension/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extension/script.js b/extension/script.js index 9d2ee80..7b78717 100644 --- a/extension/script.js +++ b/extension/script.js @@ -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()',