lint
This commit is contained in:
parent
3bb7afe544
commit
0fb9c372dd
22 changed files with 69 additions and 71 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import { api } from '@/os';
|
||||
import { $i } from '@/account';
|
||||
import { Theme } from './scripts/theme';
|
||||
import { miLocalStorage } from './local-storage';
|
||||
import { api } from '@/os';
|
||||
import { $i } from '@/account';
|
||||
|
||||
const lsCacheKey = $i ? `themes:${$i.id}` as const : null;
|
||||
|
||||
export function getThemes(): Theme[] {
|
||||
if ($i == null) return [];
|
||||
return JSON.parse(miLocalStorage.getItem(lsCacheKey!) || '[]');
|
||||
return JSON.parse(miLocalStorage.getItem(lsCacheKey!) ?? '[]');
|
||||
}
|
||||
|
||||
export async function fetchThemes(): Promise<void> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue