From 4798657b70614aaf460f79b24114821ed873a9f0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 24 May 2018 05:57:27 +0900 Subject: [PATCH] Refactor --- src/client/app/mobile/views/pages/messaging-room.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/app/mobile/views/pages/messaging-room.vue b/src/client/app/mobile/views/pages/messaging-room.vue index 7fbfa056d1..82cbe72f4e 100644 --- a/src/client/app/mobile/views/pages/messaging-room.vue +++ b/src/client/app/mobile/views/pages/messaging-room.vue @@ -27,7 +27,7 @@ export default Vue.extend({ const applyBg = v => document.documentElement.style.setProperty('background', v ? '#191b22' : '#fff', 'important'); - this.$nextTick(() => applyBg(this.$store.state.device.darkmode)); + applyBg(this.$store.state.device.darkmode); this.unwatchDarkmode = this.$store.watch(s => { return s.device.darkmode; @@ -52,4 +52,3 @@ export default Vue.extend({ } }); -