Oops forgot to remove debug code

This commit is contained in:
Jean Viscogliosi-Pate 2025-01-26 03:57:57 -08:00
parent 6103d56860
commit d695bb5476
1 changed files with 0 additions and 3 deletions

View File

@ -79,15 +79,12 @@ function disableToggle() {
/* Reloads tabs belonging to saved domains */
function reloadTabs() {
browser.tabs.query({ currentWindow: true }).then((tabs) => {
console.log("tabs now!");
browser.storage.local.get("domains").then((storage) => {
const domains = storage.domains;
console.log("storage now!");
tabs.forEach((tab) => {
const hostname = new URL(tab.url).hostname;
if (domains.includes(hostname)) {
browser.tabs.reload(tab.id);
console.log("reloading!");
}
});
}, logError);