From e4c291f815651e7479cf1e6c5b78bb3b5309c6e8 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Wed, 29 Nov 2023 16:17:23 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20?= =?UTF-8?q?=ED=9B=84=20=EC=BA=90=EC=8B=9C=20=EB=B9=84=EC=9A=B0=EA=B8=B0?= =?UTF-8?q?=EA=B0=80=20misskey-dev/misskey#12481=20=EB=A5=BC=20=EB=94=B0?= =?UTF-8?q?=EB=A5=B4=EB=8F=84=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkUpdated.vue | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/packages/frontend/src/components/MkUpdated.vue b/packages/frontend/src/components/MkUpdated.vue index 5d30d9a626..86c9cdf21f 100644 --- a/packages/frontend/src/components/MkUpdated.vue +++ b/packages/frontend/src/components/MkUpdated.vue @@ -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,