summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app.vue3
1 files changed, 1 insertions, 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
});