mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-09 15:35:25 +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
|
// Check if string is url
|
||||||
if (!checkIsUrl(destination)) {
|
if (!checkIsUrl(destination)) {
|
||||||
return { destination: destination,
|
return {
|
||||||
type: `image/${format}` } as FaviconData;
|
destination: destination,
|
||||||
|
type: `image/${format}`,
|
||||||
|
} as FaviconData;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create timeout to abort request
|
// Create timeout to abort request
|
||||||
|
@ -76,6 +78,8 @@ export async function downloadFavicon(destination: string, faviconFolder: string
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return { destination: `/favicon/favicon.${format}`,
|
return {
|
||||||
type: `image/${format}` } as FaviconData;
|
destination: `/favicon/favicon.${format}`,
|
||||||
|
type: `image/${format}`,
|
||||||
|
} as FaviconData;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue