mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
neatness
This commit is contained in:
parent
a5762628a5
commit
3df1fe4d3a
1 changed files with 1 additions and 3 deletions
|
|
@ -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.`);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue