Fixes #104 - /remove-twitter-sw.js stopping Twitter redirects

This commit is contained in:
SimonBrazell 2020-11-04 21:56:54 +11:00
parent 748f3d0f3a
commit ae4b99a33e
1 changed files with 1 additions and 1 deletions

View File

@ -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;