did thread fixes

This commit is contained in:
KevinWh0 2024-05-03 11:27:41 +02:00
parent 42c2969707
commit 47d1477ac4
2 changed files with 8 additions and 10 deletions

View file

@ -96,7 +96,7 @@ if ($i) {
connection.on('notification', onNotification);
//For the favicon notification dot
watch(() => $i?.hasUnreadNotification, (hasAny) => setFavIconDot((defaultStore.state.enableFaviconNotificationDot ? hasAny : false) ?? false));
watch(() => $i?.hasUnreadNotification && defaultStore.state.enableFaviconNotificationDot, (hasAny) => setFavIconDot(hasAny as boolean));
if ($i.hasUnreadNotification && defaultStore.state.enableFaviconNotificationDot) setFavIconDot(true);