fix(AiMode): 旧Hub時の設定が残っている場合に設定変更が反映できないのを修正

This commit is contained in:
kakkokari-gtyih 2024-04-05 21:49:51 +09:00
parent e2949ccc79
commit 9590c508e0

View File

@ -11,7 +11,7 @@ if (import.meta.client) {
isEnabledAiChanMode.value = ((localStorage.getItem('miHub_aichan_mode') ?? '') == 'true'); isEnabledAiChanMode.value = ((localStorage.getItem('miHub_aichan_mode') ?? '') == 'true');
// migration // migration
if (!isEnabledAiChanMode.value) { if (!localStorage.getItem('miHub_aichan_mode')) {
isEnabledAiChanMode.value = ((localStorage.getItem('aimode') ?? '') == 'true'); isEnabledAiChanMode.value = ((localStorage.getItem('aimode') ?? '') == 'true');
} }
} }