mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
improved logging for debugging purposes
This commit is contained in:
parent
8e2df2c790
commit
c202221a62
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue