mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-07 14:17:51 +02: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;
|
let best_match = null;
|
||||||
|
indexSelector:
|
||||||
for (const p of indexPriority) {
|
for (const p of indexPriority) {
|
||||||
for (let filename in currentAnonymized) {
|
for (let filename in currentAnonymized) {
|
||||||
if (filename.toLowerCase() == p) {
|
if (filename.toLowerCase() == p) {
|
||||||
best_match = filename;
|
best_match = filename;
|
||||||
break;
|
break indexSelector;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user