test
This commit is contained in:
parent
9636e1ad89
commit
6f22d39134
@ -1,6 +1,4 @@
|
|||||||
<script defer>
|
<script defer>
|
||||||
const welcomeMsg = document.getElementById("welcomeMsg");
|
|
||||||
|
|
||||||
async function getUserInfo() {
|
async function getUserInfo() {
|
||||||
const data = new URLSearchParams();
|
const data = new URLSearchParams();
|
||||||
data.append("action", "get_user_info");
|
data.append("action", "get_user_info");
|
||||||
@ -8,7 +6,7 @@
|
|||||||
const result = await doAccountAction(data, null, null, true);
|
const result = await doAccountAction(data, null, null, true);
|
||||||
|
|
||||||
if (result && result.Status === "Success") {
|
if (result && result.Status === "Success") {
|
||||||
welcomeMsg.innerText = `Ahoj, ${result.UserInfo.FirstName}.`;
|
document.getElementById("welcomeMsg").innerText = `Ahoj, ${result.UserInfo.FirstName}.`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user