summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkNotifications.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-20 19:00:09 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-20 19:00:09 +0900
commit6015254e59ba0526efbfa139c89546458663ccbd (patch)
tree97adc609448eb3ce96730051193042c9eec470db /packages/frontend/src/components/MkNotifications.vue
parentUpdate eslint.config.js (diff)
downloadmisskey-6015254e59ba0526efbfa139c89546458663ccbd.tar.gz
misskey-6015254e59ba0526efbfa139c89546458663ccbd.tar.bz2
misskey-6015254e59ba0526efbfa139c89546458663ccbd.zip
lint fixes
Diffstat (limited to 'packages/frontend/src/components/MkNotifications.vue')
-rw-r--r--packages/frontend/src/components/MkNotifications.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkNotifications.vue b/packages/frontend/src/components/MkNotifications.vue
index 08fc846327..21f1967bfa 100644
--- a/packages/frontend/src/components/MkNotifications.vue
+++ b/packages/frontend/src/components/MkNotifications.vue
@@ -59,7 +59,7 @@ const pagination = computed(() => prefer.r.useGroupedNotifications.value ? {
function onNotification(notification) {
const isMuted = props.excludeTypes ? props.excludeTypes.includes(notification.type) : false;
- if (isMuted || document.visibilityState === 'visible') {
+ if (isMuted || window.document.visibilityState === 'visible') {
useStream().send('readNotification');
}