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