File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -391,14 +391,12 @@ ${GRADIENT_CSS}`;
391391 <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"/>
392392</svg>` ;
393393 await writeFile ( "static/logo.svg" , STATIC_LOGO ) ;
394-
395- try {
396- const res = await fetch ( "https://fresh.deno.dev/favicon.ico" ) ;
397- const buf = await res . arrayBuffer ( ) ;
398- await writeFile ( "static/favicon.ico" , new Uint8Array ( buf ) ) ;
399- } catch {
400- // Skip this and be silent if there is a network issue.
401- }
394+ await writeFile (
395+ "static/favicon.ico" ,
396+ await Deno . readFile (
397+ new URL ( import . meta. resolve ( "../../www/static/favicon.ico" ) ) ,
398+ ) ,
399+ ) ;
402400
403401 const MAIN_TS = `import { App, fsRoutes, staticFiles } from "fresh";
404402import { define, type State } from "./utils.ts";
You can’t perform that action at this time.
0 commit comments