mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fix user info image
This commit is contained in:
parent
85a3164bad
commit
227e313d51
1 changed files with 3 additions and 2 deletions
|
@ -2043,8 +2043,9 @@ function getSetUserInformation(selected_callsign) {
|
||||||
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(";base64,")[1]);
|
||||||
atob(data.user_info_image.split("data:image/png;base64,")[1]);
|
// split data string by "base64" for separating image type from base64 string
|
||||||
|
atob(data.user_info_image.split(";base64,")[1]);
|
||||||
|
|
||||||
document.getElementById("dx_user_info_image").src =
|
document.getElementById("dx_user_info_image").src =
|
||||||
data.user_info_image;
|
data.user_info_image;
|
||||||
|
|
Loading…
Reference in a new issue