Oops forgot to remove debug code
This commit is contained in:
parent
6103d56860
commit
d695bb5476
|
@ -79,15 +79,12 @@ function disableToggle() {
|
||||||
/* Reloads tabs belonging to saved domains */
|
/* Reloads tabs belonging to saved domains */
|
||||||
function reloadTabs() {
|
function reloadTabs() {
|
||||||
browser.tabs.query({ currentWindow: true }).then((tabs) => {
|
browser.tabs.query({ currentWindow: true }).then((tabs) => {
|
||||||
console.log("tabs now!");
|
|
||||||
browser.storage.local.get("domains").then((storage) => {
|
browser.storage.local.get("domains").then((storage) => {
|
||||||
const domains = storage.domains;
|
const domains = storage.domains;
|
||||||
console.log("storage now!");
|
|
||||||
tabs.forEach((tab) => {
|
tabs.forEach((tab) => {
|
||||||
const hostname = new URL(tab.url).hostname;
|
const hostname = new URL(tab.url).hostname;
|
||||||
if (domains.includes(hostname)) {
|
if (domains.includes(hostname)) {
|
||||||
browser.tabs.reload(tab.id);
|
browser.tabs.reload(tab.id);
|
||||||
console.log("reloading!");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, logError);
|
}, logError);
|
||||||
|
|
Loading…
Reference in New Issue