Files
srhtnin.github.io/Scripts/Garden/Social.js
T

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
);