From 446a53b32f9fc806a3bc7cf6f0dbd9390a8a5459 Mon Sep 17 00:00:00 2001 From: Pacman Ghost Date: Wed, 12 Oct 2022 12:44:58 +1100 Subject: [PATCH] Fixed a possible timing error during startup. --- vasl_templates/webapp/static/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vasl_templates/webapp/static/main.js b/vasl_templates/webapp/static/main.js index 8b47708..bb9ddd4 100644 --- a/vasl_templates/webapp/static/main.js +++ b/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" ) ; }