Prettified Code!

This commit is contained in:
DJ2LS 2023-03-22 21:49:30 +00:00 committed by GitHub Action
parent 47a15930fa
commit 179d5906b2

View file

@ -1184,10 +1184,10 @@ update_chat = function (obj) {
if (obj.status == "failed") { if (obj.status == "failed") {
var progressbar_bg = "bg-danger"; var progressbar_bg = "bg-danger";
var percent_value = "TRANSMISSION FAILED" var percent_value = "TRANSMISSION FAILED";
} else if(obj.status == "transmitted"){ } else if (obj.status == "transmitted") {
var progressbar_bg = "bg-success"; var progressbar_bg = "bg-success";
var percent_value = "TRANSMITTED" var percent_value = "TRANSMITTED";
} else { } else {
var progressbar_bg = "bg-primary"; var progressbar_bg = "bg-primary";
var percent_value = obj.percent; var percent_value = obj.percent;
@ -2067,7 +2067,6 @@ function getSetUserInformation(selected_callsign) {
defaultUserIcon; defaultUserIcon;
} }
} else { } else {
// throw error and use placeholder data // throw error and use placeholder data
throw new Error("Data not available or corrupted"); throw new Error("Data not available or corrupted");
//document.getElementById("dx_user_info_image").src = defaultUserIcon; //document.getElementById("dx_user_info_image").src = defaultUserIcon;