Add initialization of audio module key in extension settings.
This commit is contained in:
parent
4808e02c32
commit
7cbf53e02c
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue