업데이트 후 캐시 비우기가 misskey-dev/misskey#12481 를 따르도록
This commit is contained in:
parent
b58b8dd3c7
commit
e4c291f815
|
@ -37,6 +37,7 @@ 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';
|
||||
import { clearCache } from '@/scripts/clear-cache.js';
|
||||
|
||||
let showChangelog = $ref(false);
|
||||
|
||||
|
@ -66,19 +67,9 @@ const close = async () => {
|
|||
});
|
||||
return;
|
||||
}
|
||||
cacheClear();
|
||||
await clearCache();
|
||||
};
|
||||
|
||||
function cacheClear() {
|
||||
os.waiting();
|
||||
miLocalStorage.removeItem('locale');
|
||||
miLocalStorage.removeItem('theme');
|
||||
miLocalStorage.removeItem('emojis');
|
||||
miLocalStorage.removeItem('lastEmojisFetchedAt');
|
||||
fetchCustomEmojis(true);
|
||||
unisonReload();
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
confetti({
|
||||
duration: 1000 * 3,
|
||||
|
|
Loading…
Reference in a new issue