summaryrefslogtreecommitdiff
path: root/src/client/init.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-07-10 00:20:26 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-07-10 00:20:26 +0900
commita591a334ed6fd7f8ed936bf7e7edfcce08de035a (patch)
tree16483d21ba450f2d5790fa2e901a9ae1dee74582 /src/client/init.ts
parent:art: (diff)
downloadsharkey-a591a334ed6fd7f8ed936bf7e7edfcce08de035a.tar.gz
sharkey-a591a334ed6fd7f8ed936bf7e7edfcce08de035a.tar.bz2
sharkey-a591a334ed6fd7f8ed936bf7e7edfcce08de035a.zip
refactor
Diffstat (limited to 'src/client/init.ts')
-rw-r--r--src/client/init.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/init.ts b/src/client/init.ts
index a5c310dd6f..21f233cc91 100644
--- a/src/client/init.ts
+++ b/src/client/init.ts
@@ -18,7 +18,7 @@ import PostFormDialog from './components/post-form-dialog.vue';
import Dialog from './components/dialog.vue';
import Menu from './components/menu.vue';
import { router } from './router';
-import { applyTheme, lightTheme } from './theme';
+import { applyTheme, lightTheme } from './scripts/theme';
import { isDeviceDarkmode } from './scripts/is-device-darkmode';
import createStore from './store';
import { clientDb, get, count } from './db';
@@ -114,7 +114,7 @@ os.init(async () => {
}, false);
store.watch(state => state.device.darkMode, darkMode => {
- import('./theme').then(({ builtinThemes }) => {
+ import('./scripts/theme').then(({ builtinThemes }) => {
const themes = builtinThemes.concat(store.state.device.themes);
applyTheme(themes.find(x => x.id === (darkMode ? store.state.device.darkTheme : store.state.device.lightTheme)));
});