forked from Adleraci/adlerka.top
Test JS
This commit is contained in:
parent
c4c9e021e4
commit
fd8e5e9ebe
@ -1,4 +1,5 @@
|
||||
let UserInfo = {};
|
||||
|
||||
async function handleResponse(data, successMessage, failureMessage) {
|
||||
const statusMessageContainer = document.getElementById("statusMessageContainer");
|
||||
|
||||
@ -348,15 +349,15 @@ async function getUserInfo() {
|
||||
const data = {
|
||||
action: "get_user_info",
|
||||
};
|
||||
const result = await doAction('/account', data, "User info retrieved Successfully!", "User info retrieval failed.", true);
|
||||
|
||||
doAction('/account', data, "User info retrieved Successfully!", "User info retrieval failed.", true) .then((result) => {
|
||||
if (result && result.Status === "Success") {
|
||||
result.UserInfo.forEach(function callback(value, index) {
|
||||
result.UserInfo.forEach((value, index) => {
|
||||
localStorage.setItem("UserInfo_" + index, value);
|
||||
UserInfo[index] = value;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//User settings end
|
||||
@ -421,6 +422,7 @@ async function deleteActivationCode(activationCode) {
|
||||
await listActivationCodes();
|
||||
umami.track("deleteActivationCode");
|
||||
}
|
||||
|
||||
//Admin settings end
|
||||
|
||||
if (document.readyState !== "loading") {
|
||||
|
Loading…
Reference in New Issue
Block a user