match assets/{icon,logo} as well

This commit is contained in:
Julius Marminge committed 2026-02-27 15:08:46 -08:00
1 parent 2eaed39927
commit 91dc89510f
1 file changed
+5 -5
+5 -5
View File
@@ -27,6 +27,10 @@ const FAVICON_CANDIDATES = [
"src/app/favicon.ico",
"src/app/icon.svg",
"src/app/icon.png",
"assets/icon.svg",
"assets/icon.png",
"assets/logo.svg",
"assets/logo.png",
];
// Files that may contain a <link rel="icon"> or icon metadata declaration.
@@ -91,11 +95,7 @@ export function tryHandleProjectFaviconRequest(url: URL, res: http.ServerRespons
return true;
}
const tryResolvedPaths = (
paths: string[],
index: number,
onExhausted: () => void,
): void => {
const tryResolvedPaths = (paths: string[], index: number, onExhausted: () => void): void => {
if (index >= paths.length) {
onExhausted();
return;