mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Prettified Code!
This commit is contained in:
parent
c202221a62
commit
85a3164bad
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue