fix: correctly apply index priority for websites (#160)

Fixes https://github.com/tdurieux/anonymous_github/issues/159
This commit is contained in:
Maxim Van de Wynckel
2023-02-01 14:43:36 +01:00
committed by GitHub
parent e882c308f5
commit aa67f10e31

View File

@@ -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;
}
}
}