| ... | ... | @@ -27,6 +27,10 @@ const FAVICON_CANDIDATES = [ |
| 27 | 27 | "src/app/favicon.ico", |
| 28 | 28 | "src/app/icon.svg", |
| 29 | 29 | "src/app/icon.png", |
| 30 | "assets/icon.svg", |
| 31 | "assets/icon.png", |
| 32 | "assets/logo.svg", |
| 33 | "assets/logo.png", |
| 30 | 34 | ]; |
| 31 | 35 | |
| 32 | 36 | // Files that may contain a <link rel="icon"> or icon metadata declaration. |
| ... | ... | @@ -91,11 +95,7 @@ export function tryHandleProjectFaviconRequest(url: URL, res: http.ServerRespons |
| 91 | 95 | return true; |
| 92 | 96 | } |
| 93 | 97 | |
| 94 | | const tryResolvedPaths = ( |
| 95 | | paths: string[], |
| 96 | | index: number, |
| 97 | | onExhausted: () => void, |
| 98 | | ): void => { |
| 98 | const tryResolvedPaths = (paths: string[], index: number, onExhausted: () => void): void => { |
| 99 | 99 | if (index >= paths.length) { |
| 100 | 100 | onExhausted(); |
| 101 | 101 | return; |