improved logging for debugging purposes

This commit is contained in:
DJ2LS 2023-03-22 22:08:12 +01:00
parent 8e2df2c790
commit c202221a62

View file

@ -2042,6 +2042,7 @@ function getSetUserInformation(selected_callsign) {
try {
console.log("try checking for image if base64 data");
// determine if we have a base64 encoded image
console.log(data.user_info_image)
console.log(data.user_info_image.split("data:image/png;base64,")[1]);
atob(data.user_info_image.split("data:image/png;base64,")[1]);
@ -2073,7 +2074,6 @@ function getSetUserInformation(selected_callsign) {
"width: 60px";
// DX Station tab
document.getElementById("dx_user_info_name").innerHTML =
data.user_info_name;
document.getElementById("dx_user_info_age").innerHTML =
@ -2107,6 +2107,10 @@ function getSetUserInformation(selected_callsign) {
document.getElementById("dx_user_info_comments").className = "";
})
.catch(function (err) {
console.log("writing user info to modal failed")
console.log(err);
// Callsign list elements
document.getElementById("user-image-" + selected_callsign).src =
defaultUserIcon;