Fixed a possible timing error during startup.

master
Pacman Ghost 2 years ago
parent c7a002b1c6
commit 446a53b32f
  1. 3
      vasl_templates/webapp/static/main.js

@ -847,7 +847,8 @@ function update_page_load_status( id )
if ( gPageLoadStatus.indexOf( "vehicle-listings" ) === -1 && gPageLoadStatus.indexOf( "ordnance-listings" ) === -1 &&
gPageLoadStatus.indexOf( "vehicle-notes" ) === -1 && gPageLoadStatus.indexOf( "ordnance-notes" ) === -1 ) {
// NOTE: We also need to wait for the app config to arrive (for the scenario theaters).
if ( gPageLoadStatus.indexOf( "app-config" ) === -1 ) {
// NOTE: And also the default template pack.
if ( gPageLoadStatus.indexOf( "app-config" ) === -1 && gPageLoadStatus.indexOf( "template-pack" ) === -1 ) {
do_on_new_scenario( false, true ) ;
update_page_load_status( "reset-scenario" ) ;
}

Loading…
Cancel
Save