From c187a8862559242a623f6b5cf59c00b658c1c69a Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 8 Oct 2024 17:45:53 -0700 Subject: silently fail if user attempts to open timestamp tool on a non-yt page --- popup.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/popup.js b/popup.js index 21cfed4..649720a 100644 --- a/popup.js +++ b/popup.js @@ -5,8 +5,6 @@ document.getElementById('activate').addEventListener('click', () => { target: { tabId: tabs[0].id }, files: ['content-script.js'] }); - } else { - alert("Please open a YouTube video to use the Timestamp Tool."); } }); }); -- cgit v1.2.3