authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-27 15:08:46-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-02-27 15:21:31-08:00
log732b3abf9970e80b12bb912cf2643a40da7be11e
treecdc840906767bc04c8137304cbe3be49f6b47afd
parentffbf541ff88c2c8398e69612fb65d8705ab2ad60

match assets/{icon,logo} as well


1 files changed, 5 insertions(+), 5 deletions(-)

apps/server/src/projectFaviconRoute.ts+5-5
......@@ -27,6 +27,10 @@ const FAVICON_CANDIDATES = [
2727 "src/app/favicon.ico",
2828 "src/app/icon.svg",
2929 "src/app/icon.png",
30 "assets/icon.svg",
31 "assets/icon.png",
32 "assets/logo.svg",
33 "assets/logo.png",
3034];
3135
3236// Files that may contain a <link rel="icon"> or icon metadata declaration.
......@@ -91,11 +95,7 @@ export function tryHandleProjectFaviconRequest(url: URL, res: http.ServerRespons
9195 return true;
9296 }
9397
94 const tryResolvedPaths = (
95 paths: string[],
96 index: number,
97 onExhausted: () => void,
98 ): void => {
98 const tryResolvedPaths = (paths: string[], index: number, onExhausted: () => void): void => {
9999 if (index >= paths.length) {
100100 onExhausted();
101101 return;