Prettified Code!

This commit is contained in:
DJ2LS 2023-03-22 21:08:42 +00:00 committed by GitHub Action
parent c202221a62
commit 85a3164bad

View file

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