This commit is contained in:
Richard Mikloš 2024-02-03 22:55:09 +01:00
parent 9636e1ad89
commit 6f22d39134

@ -1,6 +1,4 @@
<script defer>
const welcomeMsg = document.getElementById("welcomeMsg");
async function getUserInfo() {
const data = new URLSearchParams();
data.append("action", "get_user_info");
@ -8,7 +6,7 @@
const result = await doAccountAction(data, null, null, true);
if (result && result.Status === "Success") {
welcomeMsg.innerText = `Ahoj, ${result.UserInfo.FirstName}.`;
document.getElementById("welcomeMsg").innerText = `Ahoj, ${result.UserInfo.FirstName}.`;
}
}