From 42b96ed01a216052101ce51064852e483b66b505 Mon Sep 17 00:00:00 2001 From: ellielle <40385743+ellielle@users.noreply.github.com> Date: Fri, 3 May 2024 12:12:08 -0400 Subject: [PATCH] fix filter to only run on gw2 wiki pages --- src/background/background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/background/background.js b/src/background/background.js index 6d64c6f..3dbb71b 100644 --- a/src/background/background.js +++ b/src/background/background.js @@ -63,6 +63,7 @@ browser.action.onClicked.addListener(async (tab) => { // Wake up background page so it can establish a connection without error let gettingPage = await browser.runtime.getBackgroundPage(); await gettingPage; + console.log("getting page: ", gettingPage); // Only activate extension on GW2 wiki pages // This prevents it from changing the url on @@ -80,7 +81,7 @@ browser.action.onClicked.addListener(async (tab) => { // listen for changes to the url in tabs that match // *://*.guildwars2.com/* const event_filter = { - properties: ["url"], + urls: ["*://*.guildwars2.com/*"], }; browser.tabs.onUpdated.addListener(async (tabId, tabUrl, _) => {