1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-12 05:38:51 +09:00
This commit is contained in:
syuilo 2018-05-24 05:57:27 +09:00
parent f565e60bcf
commit 4798657b70

View File

@ -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>