1
0
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:
syuilo
2025-10-25 08:22:47 +09:00
parent 4ff826eb3d
commit 9f768b8022
3 changed files with 9 additions and 2 deletions

View File

@@ -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');
}