forked from andyburke/autonomous.contact
fix: ensure we are loading events properly during fsdb scan
fix: various styling issues on smaller screens fix: map z-index
This commit is contained in:
parent
873773bc91
commit
2d12104875
10 changed files with 126 additions and 38 deletions
|
|
@ -11,6 +11,11 @@ const APP = {
|
|||
on: function( event_name, callback ) {
|
||||
this._event_callbacks[ event_name ] = this._event_callbacks[ event_name ] ?? new Set();
|
||||
this._event_callbacks[event_name ].add( callback );
|
||||
|
||||
if ( event_name === 'load' && this._loaded ) {
|
||||
setTimeout( callback, 0 );
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
|
|
@ -90,6 +95,7 @@ const APP = {
|
|||
},
|
||||
|
||||
load: async function() {
|
||||
this._loaded = false;
|
||||
this.server = {
|
||||
name: document.title,
|
||||
url: window.location.origin ?? window.location.href,
|
||||
|
|
@ -126,6 +132,7 @@ const APP = {
|
|||
this.check_if_logged_in();
|
||||
this.extract_url_hash_info();
|
||||
this._emit( 'load', this );
|
||||
this._loaded = true;
|
||||
},
|
||||
|
||||
update_user: async function( user ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue