From dac962580b40c5828e70bc4745ce33e049720c6b Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 23 Mar 2020 19:06:46 +0900 Subject: テーマインポート機能を実装するなど MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/init.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/init.ts') 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))); } -- cgit v1.2.3-freya