diff options
| author | こぴなたみぽ <syuilotan@yahoo.co.jp> | 2018-02-26 18:31:55 +0900 |
|---|---|---|
| committer | こぴなたみぽ <syuilotan@yahoo.co.jp> | 2018-02-26 18:31:55 +0900 |
| commit | 37e5a9d06a492832e8e04f6029be58edb45bab5e (patch) | |
| tree | 45bc4b316a47cca2e22f516b21b21fc49c45276a /src/web/app/mobile/views | |
| parent | v3892 (diff) | |
| download | misskey-37e5a9d06a492832e8e04f6029be58edb45bab5e.tar.gz misskey-37e5a9d06a492832e8e04f6029be58edb45bab5e.tar.bz2 misskey-37e5a9d06a492832e8e04f6029be58edb45bab5e.zip | |
Fix bug
Diffstat (limited to 'src/web/app/mobile/views')
| -rw-r--r-- | src/web/app/mobile/views/components/ui.header.vue | 1 | ||||
| -rw-r--r-- | src/web/app/mobile/views/pages/home.vue | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/web/app/mobile/views/components/ui.header.vue b/src/web/app/mobile/views/components/ui.header.vue index 4962c5b0b4..f4b98d36f2 100644 --- a/src/web/app/mobile/views/components/ui.header.vue +++ b/src/web/app/mobile/views/components/ui.header.vue @@ -56,6 +56,7 @@ export default Vue.extend({ const ago = (new Date().getTime() - new Date((this as any).os.i.last_used_at).getTime()) / 1000 const isHisasiburi = ago >= 3600; + (this as any).os.i.last_used_at = new Date(); if (isHisasiburi) { (this.$refs.welcomeback as any).style.display = 'block'; (this.$refs.main as any).style.overflow = 'hidden'; diff --git a/src/web/app/mobile/views/pages/home.vue b/src/web/app/mobile/views/pages/home.vue index 2aa650ec53..44b0724915 100644 --- a/src/web/app/mobile/views/pages/home.vue +++ b/src/web/app/mobile/views/pages/home.vue @@ -111,7 +111,7 @@ export default Vue.extend({ this.widgets = (this as any).os.i.client_settings.mobile_home; } - this.$watch('os.i', i => { + this.$watch('os.i.client_settings', i => { this.widgets = (this as any).os.i.client_settings.mobile_home; }, { deep: true |