This commit is contained in:
Siddharth Singh 2024-10-02 20:53:57 +05:30
parent a5762628a5
commit 3df1fe4d3a
No known key found for this signature in database

View file

@ -56,9 +56,7 @@ if (import.meta.main) {
}) })
.then(async (blob) => .then(async (blob) =>
await pngToIco(Buffer.from(await blob.arrayBuffer())) await pngToIco(Buffer.from(await blob.arrayBuffer()))
.then(async (buf) => { .then(async (buf) => await Deno.writeFile('./public/favicon.ico', buf))
await Deno.writeFile('./public/favicon.ico', buf);
})
); );
} catch (e) { } catch (e) {
die(1, `Error generating favicon from url ${image}: "${e}". Please check this or try again without --image.`); die(1, `Error generating favicon from url ${image}: "${e}". Please check this or try again without --image.`);