mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19: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) =>
|
||||
await pngToIco(Buffer.from(await blob.arrayBuffer()))
|
||||
.then(async (buf) => {
|
||||
await Deno.writeFile('./public/favicon.ico', buf);
|
||||
})
|
||||
.then(async (buf) => await Deno.writeFile('./public/favicon.ico', buf))
|
||||
);
|
||||
} catch (e) {
|
||||
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