summaryrefslogtreecommitdiffstats
path: root/assets/javascript/remove-twitter-sw.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--assets/javascript/remove-twitter-sw.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/javascript/remove-twitter-sw.js b/assets/javascript/remove-twitter-sw.js
index 222a728..fe718fd 100644
--- a/assets/javascript/remove-twitter-sw.js
+++ b/assets/javascript/remove-twitter-sw.js
@@ -81,7 +81,7 @@ browser.storage.sync.get(
}
});
const url = new URL(window.location);
- if (shouldRedirect()) {
+ if (shouldRedirect(url)) {
const redirect = redirectTwitter(url);
console.info("Redirecting", `"${url.href}"`, "=>", `"${redirect}"`);
window.location = redirect;