From ae4b99a33ed4bce9d13a2ab2d67ce6cdb0885a7e Mon Sep 17 00:00:00 2001 From: SimonBrazell Date: Wed, 4 Nov 2020 21:56:54 +1100 Subject: [PATCH] Fixes #104 - /remove-twitter-sw.js stopping Twitter redirects --- assets/javascript/remove-twitter-sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;