From 81f1df7472e4b1c04d7a007f3d47a0f236aac330 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 24 May 2020 13:53:31 +0900 Subject: [PATCH] Resolve #6405 (#6406) --- src/client/app.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/app.vue b/src/client/app.vue index 8e192d4633..4cb3c22e65 100644 --- a/src/client/app.vue +++ b/src/client/app.vue @@ -500,8 +500,7 @@ export default Vue.extend({ }, async onNotification(notification) { - // TODO: ユーザーが画面を見てないと思われるとき(ブラウザやタブがアクティブじゃないなど)は送信しない - if (true) { + if (document.visibilityState === 'visible') { this.$root.stream.send('readNotification', { id: notification.id });