Fixed i.redd.it redirection to old.reddit.com #72

This commit is contained in:
ManeraKai 2022-03-01 19:00:56 +03:00
parent 96a04b66f7
commit c8fe9e2838
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 4 additions and 1 deletions

View File

@ -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') {