diff options
Diffstat (limited to 'src/client/init.ts')
| -rw-r--r-- | src/client/init.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/init.ts b/src/client/init.ts index c7587afb8c..b9c6aedae4 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -178,6 +178,7 @@ os.init(async () => { }, watch: { '$store.state.device.darkMode'() { + // TODO: このファイルでbuiltinThemesを参照するとcode splittingが効かず、初回読み込み時に全てのテーマコードを読み込むことになってしまい無駄なので何とかする const themes = builtinThemes.concat(this.$store.state.device.themes); applyTheme(themes.find(x => x.id === (this.$store.state.device.darkMode ? this.$store.state.device.darkTheme : this.$store.state.device.lightTheme))); } |