mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for error popup
This commit is contained in:
@@ -2259,6 +2259,7 @@ function show_error_message(data) {
|
|||||||
while (error_box_data.firstChild) {
|
while (error_box_data.firstChild) {
|
||||||
error_box_data.removeChild(error_box_data.firstChild);
|
error_box_data.removeChild(error_box_data.firstChild);
|
||||||
}
|
}
|
||||||
|
console.log(data);
|
||||||
if (Array.isArray(data)) {
|
if (Array.isArray(data)) {
|
||||||
for (item of data) {
|
for (item of data) {
|
||||||
$e("div", error_box_data, {'innerHTML': item, 'classes': ['console_text']})
|
$e("div", error_box_data, {'innerHTML': item, 'classes': ['console_text']})
|
||||||
@@ -2266,7 +2267,7 @@ function show_error_message(data) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//console.log(item);
|
//console.log(item);
|
||||||
$e("div", error_box_data, {'innerHTML': item, 'classes': ['console_text']})
|
$e("div", error_box_data, {'innerHTML': data, 'classes': ['console_text']})
|
||||||
}
|
}
|
||||||
openPopup("error-popup");
|
openPopup("error-popup");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user