summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2020-05-24 13:53:31 +0900
committerGitHub <noreply@github.com>2020-05-24 13:53:31 +0900
commit81f1df7472e4b1c04d7a007f3d47a0f236aac330 (patch)
tree00544e4fc94994e2e40ad00adb361e3adcd6bb27 /src
parentrefactor: use Object.fromEntries() instead of in-house implementation (#6401) (diff)
downloadsharkey-81f1df7472e4b1c04d7a007f3d47a0f236aac330.tar.gz
sharkey-81f1df7472e4b1c04d7a007f3d47a0f236aac330.tar.bz2
sharkey-81f1df7472e4b1c04d7a007f3d47a0f236aac330.zip
Resolve #6405 (#6406)
Diffstat (limited to 'src')
-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
});