diff options
author | Kotuklion <quemasterbog@gmail.com> | 2021-07-12 18:48:52 +0200 |
---|---|---|
committer | Kotuklion <quemasterbog@gmail.com> | 2021-07-12 18:48:52 +0200 |
commit | 010d19aff9f6ee4a46e6dad276bca16f8d3a1adb (patch) | |
tree | 1a6e05fbaaa27e59476b7824f25ef3d57325131e /src/pages/background | |
parent | left some unnecessary spaces here and there (diff) | |
download | libredirect-010d19aff9f6ee4a46e6dad276bca16f8d3a1adb.zip |
check host instead of the whole href for occurence of wikipedia.org
Diffstat (limited to 'src/pages/background')
-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), }; |