From 2ad220b51f3b3cb773759bc3bea4891239d9c17c Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 20 Feb 2021 11:01:26 +0100 Subject: [PATCH] Make server configuration mandatory to load the page --- assets/js/common/system.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/js/common/system.js b/assets/js/common/system.js index 40e31760..887bbd0c 100644 --- a/assets/js/common/system.js +++ b/assets/js/common/system.js @@ -61,10 +61,11 @@ const System = { */ Page.showWaitSplashScreen(tr("Loading server configuration")); try { - ServerConfig.ensureLoaded(); + await ServerConfig.ensureLoaded(); } catch(e) { console.error(e) - Page.showTransparentWaitSplashScreen(tr("Failed to load server configuration! Please try again by refreshing the page!")); + ComunicWeb.common.error.fatalError(tr("Failed to load server configuration!")); + return; } /**