try fixing user info

This commit is contained in:
DJ2LS 2023-03-22 13:40:51 +01:00
parent 56e0cb89bd
commit db66ec8bb5

View file

@ -2019,6 +2019,7 @@ function getSetUserSharedFolder(selected_callsign) {
function getSetUserInformation(selected_callsign) {
//Get user information
console.log("get set user information:" + selected_callsign)
if (
selected_callsign == "" ||
@ -2037,6 +2038,7 @@ function getSetUserInformation(selected_callsign) {
// image
if (typeof data.user_info_image !== "undefined") {
try {
console.log("try checking for image if base64 data")
// determine if we have a base64 encoded image
console.log(data.user_info_image.split("data:image/png;base64,")[1]);
atob(data.user_info_image.split("data:image/png;base64,")[1]);