fix: reduce webapp icon displayed on browser tab flickering when page is loading (#9212)
This commit is contained in:
parent
fe41e8bc18
commit
1c1e008dcf
2 changed files with 6 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ export function useAppFavicon(options: UseAppFaviconOptions) {
|
|||
} = options
|
||||
|
||||
useAsyncEffect(async () => {
|
||||
if (!enable)
|
||||
if (!enable || (icon_type === 'image' && !icon_url) || (icon_type === 'emoji' && !icon))
|
||||
return
|
||||
|
||||
const isValidImageIcon = icon_type === 'image' && icon_url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue