mirror of
https://codeberg.org/LibRedirect/libredirect.git
synced 2025-02-03 12:47:36 +01:00
Fixed i.redd.it redirection to old.reddit.com #72
This commit is contained in:
parent
96a04b66f7
commit
c8fe9e2838
@ -220,8 +220,11 @@ function redirect(url, type, initiator) {
|
||||
|
||||
if (type !== "main_frame" || url.pathname.match(bypassPaths)) return null;
|
||||
|
||||
if (frontend == 'old') return `${redirects.desktop}${url.pathname}${url.search}`;
|
||||
if (frontend == 'old') {
|
||||
if (url.host === "i.redd.it") return null;
|
||||
|
||||
return `${redirects.desktop}${url.pathname}${url.search}`;
|
||||
}
|
||||
let libredditInstancesList;
|
||||
let tedditInstancesList;
|
||||
if (protocol == 'normal') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user