merge voicemap to settings rather than overwrite

This commit is contained in:
ouoertheo 2023-08-27 20:47:44 -05:00
parent 765751aae0
commit d8843274b1

View File

@ -678,7 +678,7 @@ function updateVoiceMap() {
voiceMap = tempVoiceMap
console.log(`Voicemap updated to ${JSON.stringify(voiceMap)}`)
}
extension_settings.tts[ttsProviderName].voiceMap = voiceMap
Object.assign(extension_settings.tts[ttsProviderName].voiceMap, voiceMap)
saveSettingsDebounced()
}