mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 01:53:08 +02:00
239507d7d6
* fix: devモードでキャッシュクリアするとページが表示されなくなる問題を修正 * fix: localeがnullの場合も最新のlocaleを取得するように
15 lines
512 B
TypeScript
15 lines
512 B
TypeScript
import { unisonReload } from '@/scripts/unison-reload.js';
|
|
import * as os from '@/os.js';
|
|
import { miLocalStorage } from '@/local-storage.js';
|
|
import { fetchCustomEmojis } from '@/custom-emojis.js';
|
|
|
|
export async function clearCache() {
|
|
os.waiting();
|
|
miLocalStorage.removeItem('locale');
|
|
miLocalStorage.removeItem('localeVersion');
|
|
miLocalStorage.removeItem('theme');
|
|
miLocalStorage.removeItem('emojis');
|
|
miLocalStorage.removeItem('lastEmojisFetchedAt');
|
|
await fetchCustomEmojis(true);
|
|
unisonReload();
|
|
}
|