Fixed a bug with old.reddit.com #122

This commit is contained in:
ManeraKai 2022-03-19 15:56:05 +03:00
parent 2da0e4236e
commit ed252bdeec
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 3 additions and 1 deletions

View File

@ -302,8 +302,10 @@ function redirect(url, type, initiator) {
if (type !== "main_frame" || url.pathname.match(bypassPaths)) return null;
if (frontend == 'old' && url.host !== "i.redd.it")
if (frontend == 'old' && url.host !== "i.redd.it") {
if (url.host == 'old.reddit.com') return;
return `${redirects.desktop}${url.pathname}${url.search}`;
}
let libredditInstancesList;
let tedditInstancesList;