Fix js
This commit is contained in:
parent
34fbecdbad
commit
77e8cfe3ea
@ -1,4 +1,4 @@
|
||||
let UserInfo;
|
||||
let UserInfo = {};
|
||||
const toggleButton = document.getElementById("toggle_button")
|
||||
const navLinks = document.getElementById("navsite_list")
|
||||
|
||||
@ -342,9 +342,9 @@ async function getUserInfo() {
|
||||
|
||||
doAction('/account', data, "User info retrieved Successfully!", "User info retrieval failed.", true) .then((result) => {
|
||||
if (result && result.Status === "Success") {
|
||||
UserInfo = result.UserInfo;
|
||||
result.UserInfo.forEach(function callback(value, index) {
|
||||
localStorage.setItem("UserInfo_" + index, value);
|
||||
UserInfo[index] = value;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user