File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -392,12 +392,14 @@ ${GRADIENT_CSS}`;
392392 <path d="M14.297 16.49c.985-.747 1.644-1.01 2.099-2.526.566.121.841-.08 1.29-.701.324.466 1.657.608 2.453.701-.715.451-1.057.852-1.452 2.106-1.464-.611-3.167-.302-4.39.42Z" fill="#fff"/>
393393</svg>` ;
394394 await writeFile ( "static/logo.svg" , STATIC_LOGO ) ;
395- await writeFile (
396- "static/favicon.ico" ,
397- await Deno . readFile (
398- new URL ( import . meta. resolve ( "./assets/favicon.ico" ) ) ,
399- ) ,
400- ) ;
395+
396+ try {
397+ const res = await fetch ( "https://fresh.deno.dev/favicon.ico" ) ;
398+ const buf = await res . arrayBuffer ( ) ;
399+ await writeFile ( "static/favicon.ico" , new Uint8Array ( buf ) ) ;
400+ } catch {
401+ // Skip this and be silent if there is a network issue.
402+ }
401403
402404 const MAIN_TS = `import { App, fsRoutes, staticFiles } from "fresh";
403405import { define, type State } from "./utils.ts";
You can’t perform that action at this time.
0 commit comments