This commit is contained in:
syuilo 2018-02-21 01:12:18 +09:00
parent 204d4dfe31
commit e4120e930c
3 changed files with 9 additions and 4 deletions

View file

@ -1,6 +1,6 @@
<template>
<mk-ui>
<mk-home :mode="mode"/>
<mk-home :mode="mode" @loaded="loaded"/>
</mk-ui>
</template>
@ -40,6 +40,10 @@ export default Vue.extend({
document.removeEventListener('visibilitychange', this.onVisibilitychange);
},
methods: {
loaded() {
Progress.done();
},
onStreamPost(post) {
if (document.hidden && post.user_id != (this as any).os.i.id) {
this.unreadCount++;