Fix default classify API migration

This commit is contained in:
Cohee 2024-04-15 04:04:30 +03:00
parent 8ce6872d6f
commit 341f02e425
1 changed files with 5 additions and 0 deletions

View File

@ -1798,6 +1798,11 @@ async function fetchImagesNoCache() {
}
function migrateSettings() {
if (extension_settings.expressions.api === undefined) {
extension_settings.expressions.api = EXPRESSION_API.extras;
saveSettingsDebounced();
}
if (Object.keys(extension_settings.expressions).includes('local')) {
if (extension_settings.expressions.local) {
extension_settings.expressions.api = EXPRESSION_API.local;