diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-24 09:48:02 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-24 09:48:02 +0900 |
| commit | c1141c526700f9db0efdf515dbf0a499f8685b9d (patch) | |
| tree | 5134a13a1fe281918c3aaa0574415cdb3829e7e4 /src/client/app/init.ts | |
| parent | Fix bug (diff) | |
| download | sharkey-c1141c526700f9db0efdf515dbf0a499f8685b9d.tar.gz sharkey-c1141c526700f9db0efdf515dbf0a499f8685b9d.tar.bz2 sharkey-c1141c526700f9db0efdf515dbf0a499f8685b9d.zip | |
Fix bug
Diffstat (limited to 'src/client/app/init.ts')
| -rw-r--r-- | src/client/app/init.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/init.ts b/src/client/app/init.ts index d764beb3bd..ed0fe4826d 100644 --- a/src/client/app/init.ts +++ b/src/client/app/init.ts @@ -104,7 +104,7 @@ export default (callback: (launch: (router: VueRouter, api?: (os: MiOS) => API) data() { _unwatchDarkmode_: null }, - created() { + mounted() { const apply = v => { if (this.$el.setAttribute == null) return; if (v) { @@ -114,7 +114,7 @@ export default (callback: (launch: (router: VueRouter, api?: (os: MiOS) => API) } }; - this.$nextTick(() => apply(os.store.state.device.darkmode)); + apply(os.store.state.device.darkmode); this._unwatchDarkmode_ = os.store.watch(s => { return s.device.darkmode; |