Sorted the instances out https://github.com/libredirect/libredirect/issues/537
This commit is contained in:
parent
f454ced949
commit
decc32e7e6
|
@ -103,6 +103,11 @@ async function processDefaultCustomInstances(service, frontend, network, documen
|
|||
<input type="checkbox" class="toggle-all"/>
|
||||
</div>`,
|
||||
...redirects[frontend][network]
|
||||
.sort((a, b) =>
|
||||
(cloudflareBlackList.includes(a) && !cloudflareBlackList.includes(b))
|
||||
||
|
||||
(authenticateBlackList.includes(a) && !authenticateBlackList.includes(b))
|
||||
)
|
||||
.map(x => {
|
||||
const cloudflare = cloudflareBlackList.includes(x) ? ' <span style="color:red;">cloudflare</span>' : ""
|
||||
const authenticate = authenticateBlackList.includes(x) ? ' <span style="color:orange;">authenticate</span>' : ""
|
||||
|
|
Loading…
Reference in New Issue