Skip to content

Commit

Permalink
업데이트 후 캐시 비우기가 misskey-dev/misskey#12481 를 따르도록
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Nov 29, 2023
1 parent b58b8dd commit e4c291f
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/frontend/src/components/MkUpdated.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e4c291f

Please sign in to comment.