mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 16:36:43 -06: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 =>
|
const applyBg = v =>
|
||||||
document.documentElement.style.setProperty('background', v ? '#191b22' : '#fff', 'important');
|
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 => {
|
this.unwatchDarkmode = this.$store.watch(s => {
|
||||||
return s.device.darkmode;
|
return s.device.darkmode;
|
||||||
|
@ -52,4 +52,3 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue