mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
parent
f59e1155f2
commit
d21401009e
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue