This commit is contained in:
kakkokari-gtyih 2025-05-04 19:42:10 +09:00
parent be6bb552dd
commit a41be520f1
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export const getTickerInfo = (props: MkInstanceTickerProps): ITickerInfo => {
return { return {
name: localInstance.name ?? host, name: localInstance.name ?? host,
iconUrl: getProxiedImageUrlNullable(localInstance.iconUrl, 'preview') ?? '/favicon.ico', iconUrl: getProxiedImageUrlNullable(localInstance.iconUrl, 'preview') ?? '/favicon.ico',
themeColor: localInstance.themeColor ?? document.querySelector<HTMLMetaElement>('meta[name="theme-color-orig"]')?.content ?? TICKER_BG_COLOR_DEFAULT, themeColor: localInstance.themeColor ?? window.document.querySelector<HTMLMetaElement>('meta[name="theme-color-orig"]')?.content ?? TICKER_BG_COLOR_DEFAULT,
} as const satisfies ITickerInfo; } as const satisfies ITickerInfo;
}; };
//#endregion ticker info //#endregion ticker info