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 | |
| parent | 748f3d0f3a85a5f0acb26ae7e792935da6d9ad93 (diff) | |
| download | privacy-redirect-ae4b99a33ed4bce9d13a2ab2d67ce6cdb0885a7e.tar.gz privacy-redirect-ae4b99a33ed4bce9d13a2ab2d67ce6cdb0885a7e.tar.bz2 privacy-redirect-ae4b99a33ed4bce9d13a2ab2d67ce6cdb0885a7e.zip | |
Fixes #104 - /remove-twitter-sw.js stopping Twitter redirects
Diffstat (limited to '')
| -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 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; |
