aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/background
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/background')
-rw-r--r--src/pages/background/background.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js
index 8e427763..cb925607 100644
--- a/src/pages/background/background.js
+++ b/src/pages/background/background.js
@@ -53,8 +53,8 @@ browser.webRequest.onBeforeRequest.addListener(
}
if (!newUrl) {
- const match = url.href.match(/^https?:\/{2}(.*)\.libredirect\.invalid.*/)
- if (match[1]) {
+ const match = url.href.match(/^https?:\/{2}.*\.libredirect\.invalid.*/)
+ if (match) {
browser.tabs.update({
url: browser.runtime.getURL(`/pages/messages/no_instance.html`)
});