Fix minor bug in duplicate code ... gpt, sigh

This commit is contained in:
2025-10-20 09:45:56 -04:00
parent afac26bae2
commit 6f5ba4ad08

View File

@ -85,7 +85,6 @@ browser.tabs.onUpdated.addListener(async (tabId, changeInfo, tab) => {
const url = encodeURIComponent(tab.url); const url = encodeURIComponent(tab.url);
updateIcon("wait"); updateIcon("wait");
if (activeTabs.has(tabId)) clearTimeout(activeTabs.get(tabId));
const siteDelay = getDelayForUrl(url, await getSettings()); const siteDelay = getDelayForUrl(url, await getSettings());
if (activeTabs.has(tabId)) clearTimeout(activeTabs.get(tabId)); if (activeTabs.has(tabId)) clearTimeout(activeTabs.get(tabId));