mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-13 18:38:11 +02:00
31 lines
548 B
JavaScript
31 lines
548 B
JavaScript
async function StartSocial() {
|
|
let CurrentUsername = null;
|
|
|
|
try {
|
|
const Profile = await GetProfile();
|
|
|
|
if (
|
|
Profile.Success &&
|
|
Profile.Username !== null
|
|
) {
|
|
CurrentUsername =
|
|
Profile.Username;
|
|
}
|
|
} catch (Error) {
|
|
console.error(
|
|
"Couldn't load current profile:",
|
|
Error
|
|
);
|
|
}
|
|
|
|
await RenderLeaderboard(
|
|
CurrentUsername
|
|
);
|
|
}
|
|
|
|
|
|
document.addEventListener(
|
|
"DOMContentLoaded",
|
|
StartSocial
|
|
);
|