Fix js
This commit is contained in:
parent
30ead7c469
commit
6fe20be187
@ -5,8 +5,7 @@ const navLinks = document.getElementById("navsite_list")
|
|||||||
toggleButton.addEventListener('click', () => {
|
toggleButton.addEventListener('click', () => {
|
||||||
navLinks.classList.toggle("active")
|
navLinks.classList.toggle("active")
|
||||||
})
|
})
|
||||||
async
|
async function handleResponse(data, successMessage, failureMessage) {
|
||||||
function handleResponse(data, successMessage, failureMessage) {
|
|
||||||
const statusMessageContainer = document.getElementById("statusMessageContainer");
|
const statusMessageContainer = document.getElementById("statusMessageContainer");
|
||||||
|
|
||||||
const statusMessage = document.createElement("div");
|
const statusMessage = document.createElement("div");
|
||||||
@ -344,7 +343,7 @@ async function getUserInfo() {
|
|||||||
doAction('/account', data, "User info retrieved Successfully!", "User info retrieval failed.", true) .then((result) => {
|
doAction('/account', data, "User info retrieved Successfully!", "User info retrieval failed.", true) .then((result) => {
|
||||||
if (result && result.Status === "Success") {
|
if (result && result.Status === "Success") {
|
||||||
UserInfo = result.UserInfo;
|
UserInfo = result.UserInfo;
|
||||||
UserInfo.forEach(function callback(value, index) {
|
result.UserInfo.forEach(function callback(value, index) {
|
||||||
localStorage.setItem("UserInfo_" + index, value);
|
localStorage.setItem("UserInfo_" + index, value);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user