fix aimode migration

This commit is contained in:
kakkokari-gtyih 2023-12-22 20:07:58 +09:00
parent f42f1df45d
commit d5b6ce157c

View File

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