diff options
author | SimonBrazell <simon@brazell.com.au> | 2020-11-04 21:56:54 +1100 |
---|---|---|
committer | SimonBrazell <simon@brazell.com.au> | 2020-11-04 21:56:54 +1100 |
commit | ae4b99a33ed4bce9d13a2ab2d67ce6cdb0885a7e (patch) | |
tree | 04a081f6c8475cff3b2a216d459f82923afc70b7 /assets | |
parent | Closes #113 - Added support for FreeTube (diff) | |
download | libredirect-ae4b99a33ed4bce9d13a2ab2d67ce6cdb0885a7e.zip |
Fixes #104 - /remove-twitter-sw.js stopping Twitter redirects
Diffstat (limited to 'assets')
-rw-r--r-- | assets/javascript/remove-twitter-sw.js | 2 |
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; |