Make redirect not return on a single instance frontend

This commit is contained in:
Hygna 2022-09-08 21:15:36 +01:00
parent 4492914535
commit 36d01024c8
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ function redirect(url, type, initiator) {
browser.storage.local.get(`${service}Frontend`, (frontend = r[service + "Frontend"]))
let instanceList = redirects[frontend][curNetwork]
if (instanceList.length === 0 && networkFallback) instanceList = redirects[frontend].clearnet
if (instanceList.length === 0) return
if (instanceList.length === 0 && redirects.indexOf(frontend) != -1) return
randomInstance = utils.getRandomInstance(instanceList)
}
switch (frontend) {