add optional argument to changeMainApi (#4853)

f145296a5899274cbfeb5410c8cb5c239379b110

Sammy <sammy@sammcheese.net>

Signed
1 files changed, +2 -2Ignore whitespace
public/script.js+2 -2
@@ -7294,8 +7294,8 @@ export async function openCharacterChat(file_name) {
72947294
7295////////// OPTIMZED MAIN API CHANGE FUNCTION ////////////7295////////// OPTIMZED MAIN API CHANGE FUNCTION ////////////
72967296
7297export function changeMainAPI() {7297export function changeMainAPI(api = null) {
7298 const selectedVal = $('#main_api').val();7298 const selectedVal = api ?? $('#main_api').val();
7299 //console.log(selectedVal);7299 //console.log(selectedVal);
7300 const apiElements = {7300 const apiElements = {
7301 'koboldhorde': {7301 'koboldhorde': {