mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-02 09:03:08 +02:00
15 lines
467 B
TypeScript
15 lines
467 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('theme');
|
||
|
miLocalStorage.removeItem('emojis');
|
||
|
miLocalStorage.removeItem('lastEmojisFetchedAt');
|
||
|
await fetchCustomEmojis(true);
|
||
|
unisonReload();
|
||
|
}
|