1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-06 22:15:23 +02:00

Fixed braces in objects, added new lines

This commit is contained in:
slaveeks 2022-07-07 13:13:42 +03:00
parent 3bf407b74d
commit 30d475ed33

View file

@ -48,8 +48,10 @@ export async function downloadFavicon(destination: string, faviconFolder: string
// Check if string is url
if (!checkIsUrl(destination)) {
return { destination: destination,
type: `image/${format}` } as FaviconData;
return {
destination: destination,
type: `image/${format}`,
} as FaviconData;
}
// Create timeout to abort request
@ -76,6 +78,8 @@ export async function downloadFavicon(destination: string, faviconFolder: string
}
});
return { destination: `/favicon/favicon.${format}`,
type: `image/${format}` } as FaviconData;
return {
destination: `/favicon/favicon.${format}`,
type: `image/${format}`,
} as FaviconData;
}