diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-22 17:43:02 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-22 17:43:02 +0900 |
| commit | a7cbdbc1f28873901b095336fc80e68fa13a2748 (patch) | |
| tree | f1f911694d22d08d032a73e0a7a5e4e21e6ed205 /src/client | |
| parent | v5089 (diff) | |
| download | sharkey-a7cbdbc1f28873901b095336fc80e68fa13a2748.tar.gz sharkey-a7cbdbc1f28873901b095336fc80e68fa13a2748.tar.bz2 sharkey-a7cbdbc1f28873901b095336fc80e68fa13a2748.zip | |
:v:
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/init.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/init.ts b/src/client/app/init.ts index 2f79e6cab1..26f5328d7d 100644 --- a/src/client/app/init.ts +++ b/src/client/app/init.ts @@ -82,12 +82,12 @@ Vue.mixin({ methods: { _updateDarkmode_(v) { localStorage.setItem('darkmode', v.toString()); - bus.$emit('updated', v); if (v) { document.documentElement.setAttribute('data-darkmode', 'true'); } else { document.documentElement.removeAttribute('data-darkmode'); } + bus.$emit('updated', v); }, _onDarkmodeUpdated_(v) { if (!this.$el || !this.$el.setAttribute) return; |