Fixes #104 - /remove-twitter-sw.js stopping Twitter redirects
This commit is contained in:
parent
748f3d0f3a
commit
ae4b99a33e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue