mirror of
https://github.com/libredirect/browser_extension.git
synced 2026-05-25 00:35:43 -04:00
Fixes #104 - /remove-twitter-sw.js stopping Twitter redirects
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user