mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 10:56:52 +08:00
fix: reduce webapp icon displayed on browser tab flickering when page is loading (#9212)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user