1
Fork 0
tildes-reextended/source/utilities/user.ts

7 lines
173 B
TypeScript
Raw Normal View History

/**
* Checks whether a user is logged in on or not.
*/
export function userIsLoggedIn(): boolean {
return document.querySelector(".logged-in-user-username") !== null;
}