forked from andyburke/autonomous.contact
feature: profile settings moved to the sidebar
This commit is contained in:
parent
ce5cd81b10
commit
b080e7ab8c
4 changed files with 173 additions and 291 deletions
|
|
@ -147,6 +147,13 @@
|
|||
window.addEventListener("locationchange", update_topics);
|
||||
document.addEventListener( 'user_logged_in', update_topics );
|
||||
|
||||
document.addEventListener( 'user_logged_in', () => {
|
||||
const user = document.body.dataset.user && JSON.parse( document.body.dataset.user );
|
||||
if ( !user ) {
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
/* check if we are logged in */
|
||||
(async () => {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue