about summary refs log tree commit diff stats
path: root/assets/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'assets/javascript')
-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 222a7283..fe718fd4 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;