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:
parent
3bf407b74d
commit
30d475ed33
1 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue