mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-26 19:34:21 +02:00
fix(frontend): キャッシュをクリアするとテーマ再適用するまでレンダリングが正しく行われない問題を修正
This commit is contained in:
@@ -242,3 +242,9 @@ export async function installTheme(code: string): Promise<void> {
|
||||
if (!theme) return;
|
||||
await addTheme(theme);
|
||||
}
|
||||
|
||||
export function clearAppliedThemeCache() {
|
||||
miLocalStorage.removeItem('theme');
|
||||
miLocalStorage.removeItem('themeId');
|
||||
miLocalStorage.removeItem('themeCachedVersion');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user