mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-17 13:34:24 +01:00
neatness
This commit is contained in:
@@ -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.`);
|
||||||
|
|||||||
Reference in New Issue
Block a user