mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 10:52:53 +00:00
fix: correctly apply index priority for websites (#160)
Fixes https://github.com/tdurieux/anonymous_github/issues/159
This commit is contained in:
committed by
GitHub
parent
e882c308f5
commit
aa67f10e31
@@ -78,11 +78,12 @@ async function webView(req: express.Request, res: express.Response) {
|
||||
}
|
||||
|
||||
let best_match = null;
|
||||
indexSelector:
|
||||
for (const p of indexPriority) {
|
||||
for (let filename in currentAnonymized) {
|
||||
if (filename.toLowerCase() == p) {
|
||||
best_match = filename;
|
||||
break;
|
||||
break indexSelector;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user