diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2021-01-11 22:31:17 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2021-01-11 22:31:17 +0900 |
| commit | 114a9fbdb2b3f770b8069e81aaa095602290401f (patch) | |
| tree | fbad1fb5828957e2837c1653ec210160bfd9e4fe /src/client/init.ts | |
| parent | Tweak tab size (diff) | |
| download | sharkey-114a9fbdb2b3f770b8069e81aaa095602290401f.tar.gz sharkey-114a9fbdb2b3f770b8069e81aaa095602290401f.tar.bz2 sharkey-114a9fbdb2b3f770b8069e81aaa095602290401f.zip | |
テーマをレジストリに保存するように
Diffstat (limited to 'src/client/init.ts')
| -rw-r--r-- | src/client/init.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/init.ts b/src/client/init.ts index f09097fe31..554b4b3320 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -56,6 +56,7 @@ import { defaultStore, ColdDeviceStorage } from '@/store'; import { fetchInstance, instance } from '@/instance'; import { makeHotkey } from './scripts/hotkey'; import { search } from './scripts/search'; +import { getThemes } from './theme-store'; console.info(`Misskey v${version}`); @@ -211,7 +212,7 @@ app.mount('body'); watch(defaultStore.reactiveState.darkMode, (darkMode) => { import('@/scripts/theme').then(({ builtinThemes }) => { - const themes = builtinThemes.concat(ColdDeviceStorage.get('themes')); + const themes = builtinThemes.concat(getThemes()); applyTheme(themes.find(x => x.id === (darkMode ? ColdDeviceStorage.get('darkTheme') : ColdDeviceStorage.get('lightTheme')))); }); }, { immediate: localStorage.theme == null }); |