Skip to content

Commit

Permalink
fixed migration errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed Dec 23, 2024
1 parent 3507320 commit c974909
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4726,6 +4726,7 @@
if(testval!="offload_to_indexeddb")
{
console.log(`Value not offloaded to indexeddb! Fallback to localstorage.`);
testval = (testval?testval:defaultvalue);
resolve(testval);
return;
}
Expand Down Expand Up @@ -4968,7 +4969,7 @@

//load custom css
let resetcss = urlParams.get('resetcss');
if(currcss!="" && !resetcss)
if(currcss && currcss!="" && !resetcss)
{
currcss = sanitize_css(currcss);
console.log("Custom CSS applied.");
Expand Down Expand Up @@ -9310,7 +9311,7 @@
.then(response => response.json())
.then(values => {
console.log(values);
let mdlname = values[0].result;
let mdlname = values.result;
if (!mdlname) {
msgbox("Error at Custom KoboldAI Endpoint!<br><br>The custom endpoint failed to respond correctly.<br><br>You may wish to <a href='#' class='color_blueurl' onclick='hide_popups();display_endpoint_container();'>try a different URL or API type</a>.","Error Encountered",true);

Expand Down

0 comments on commit c974909

Please sign in to comment.