diff options
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/background/background.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 00dd00d6..e3727e7c 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -601,7 +601,7 @@ browser.webRequest.onBeforeRequest.addListener( redirect = { redirectUrl: redirectGoogleTranslate(url, initiator), }; - } else if (url.href.match(wikipediaRegex)) { + } else if (url.host.match(wikipediaRegex)) { redirect = { redirectUrl: redirectWikipedia(url, initiator), }; |