Skip to content

Commit

Permalink
fix filter to only run on gw2 wiki pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ellielle committed May 3, 2024
1 parent a599c0f commit 42b96ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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, _) => {
Expand Down

0 comments on commit 42b96ed

Please sign in to comment.