Fix main_api default value

This commit is contained in:
Cohee
2023-07-04 11:49:46 +03:00
parent 8ad431bea6
commit c922f17f09

View File

@ -4692,7 +4692,10 @@ async function getSettings(type) {
$("#amount_gen_counter").text(`${amount_gen}`);
//Load which API we are using
if (settings.main_api != undefined) {
if (settings.main_api == undefined) {
settings.main_api = 'kobold';
}
main_api = settings.main_api;
$('#main_api').val(main_api);
$("#main_api option[value=" + main_api + "]").attr(
@ -4700,7 +4703,6 @@ async function getSettings(type) {
"true"
);
changeMainAPI();
}
//Load User's Name and Avatar