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