2023-11-30 05:48:02 +00:00
|
|
|
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');
|
2023-12-14 11:21:57 +00:00
|
|
|
miLocalStorage.removeItem('localeVersion');
|
2023-11-30 05:48:02 +00:00
|
|
|
miLocalStorage.removeItem('theme');
|
|
|
|
miLocalStorage.removeItem('emojis');
|
|
|
|
miLocalStorage.removeItem('lastEmojisFetchedAt');
|
|
|
|
await fetchCustomEmojis(true);
|
|
|
|
unisonReload();
|
|
|
|
}
|