fix: うごくように
This commit is contained in:
parent
6043f1d87e
commit
a868ef584a
@ -23,6 +23,7 @@ import { deckStore } from '@/ui/deck/deck-store.js';
|
||||
import { miLocalStorage } from '@/local-storage.js';
|
||||
import { fetchCustomEmojis } from '@/custom-emojis.js';
|
||||
import { setupRouter } from '@/router/definition.js';
|
||||
import { applyFont } from '@/scripts/font';
|
||||
|
||||
export async function common(createVue: () => App<Element>) {
|
||||
console.info(`Sharkey v${version}`);
|
||||
@ -165,6 +166,15 @@ export async function common(createVue: () => App<Element>) {
|
||||
}
|
||||
});
|
||||
|
||||
//# Custom font
|
||||
if (defaultStore.state.customFont) {
|
||||
applyFont(defaultStore.state.customFont);
|
||||
}
|
||||
|
||||
watch(defaultStore.reactiveState.customFont, (font) => {
|
||||
applyFont(font);
|
||||
});
|
||||
|
||||
//#region Sync dark mode
|
||||
if (ColdDeviceStorage.get('syncDeviceDarkMode')) {
|
||||
defaultStore.set('darkMode', isDeviceDarkmode());
|
||||
|
Loading…
Reference in New Issue
Block a user