Fix for error popup

This commit is contained in:
ebolam
2022-10-24 13:54:52 -04:00
parent b6c0caaeae
commit 712844afcd

View File

@@ -2259,6 +2259,7 @@ function show_error_message(data) {
while (error_box_data.firstChild) {
error_box_data.removeChild(error_box_data.firstChild);
}
console.log(data);
if (Array.isArray(data)) {
for (item of data) {
$e("div", error_box_data, {'innerHTML': item, 'classes': ['console_text']})
@@ -2266,7 +2267,7 @@ function show_error_message(data) {
}
} else {
//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");
}