Add initialization of audio module key in extension settings.

This commit is contained in:
Tony Ribeiro 2023-08-20 17:18:15 +02:00
parent 4808e02c32
commit 7cbf53e02c
2 changed files with 4 additions and 1 deletions

View File

@ -48,6 +48,9 @@ const defaultSettings = {
}
function loadSettings() {
if (extension_settings.audio === undefined)
extension_settings.audio = {};
if (Object.keys(extension_settings.audio).length === 0) {
Object.assign(extension_settings.audio, defaultSettings)
}

View File

@ -566,7 +566,7 @@ class CoquiTtsProvider {
if (apiResult["status"] == "done") {
$("#coqui_api_model_install_status").text("Model installed and ready to use!");
$("#coqui_api_model_install_button").hide();
onModelNameChange_pointer();
onModelNameChange_pointer(); // TODO: error ?
}
if (apiResult["status"] == "downloading") {