docbrown/app/javascript/utilities/checkUserLoggedIn.js
Lawrence 56e10f1306
Notifications Initializer Migration to Pack tag (#19124)
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
Co-authored-by: Lawrence S <lboogie@Lawrences-Air.attlocal.net>
Co-authored-by: Rajat Talesra <rajat@forem.com>
2023-04-14 17:50:07 -04:00

8 lines
171 B
JavaScript

export function checkUserLoggedIn() {
const { body } = document;
if (!body) {
return false;
}
return body.getAttribute('data-user-status') === 'logged-in';
}