mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 03:53:08 +02:00
Refactor
This commit is contained in:
parent
f565e60bcf
commit
4798657b70
1 changed files with 1 additions and 2 deletions
|
@ -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({
|
|||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue