From 569e7ff5329d5b4805b104361745c3306874e15b Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Wed, 29 May 2024 06:50:36 +0530 Subject: [PATCH] Stop click propagating to elements behind download/subscribe buttons --- extension/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extension/script.js b/extension/script.js index 42d1e61..0e25862 100644 --- a/extension/script.js +++ b/extension/script.js @@ -243,6 +243,7 @@ function buildChannelSubButton(channelHandle) { } else { console.log('Unknown state'); } + e.stopPropagation(); }); Object.assign(channelSubButton.style, { padding: '5px', @@ -304,6 +305,7 @@ function buildChannelDownloadButton() { e.preventDefault(); console.log(`download: ${currentLocation}`); sendDownload(channelDownloadButton); + e.stopPropagation(); }); Object.assign(channelDownloadButton.style, { filter: 'invert()',