1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 00:05:32 +02:00
This commit is contained in:
syuilo
2020-09-06 13:04:44 +09:00
parent d4085085b8
commit cc35f2c186
18 changed files with 38 additions and 44 deletions

View File

@@ -75,7 +75,7 @@ export default defineComponent({
},
mounted() {
this.connection = this.$root.stream.useSharedConnection('main');
this.connection = os.stream.useSharedConnection('main');
this.connection.on('notification', this.onNotification);
},
@@ -88,7 +88,7 @@ export default defineComponent({
//
const isMuted = !!this.allIncludeTypes && !this.allIncludeTypes.includes(notification.type);
if (isMuted || document.visibilityState === 'visible') {
this.$root.stream.send('readNotification', {
os.stream.send('readNotification', {
id: notification.id
});
}