Make server configuration mandatory to load the page

This commit is contained in:
Pierre HUBERT 2021-02-20 11:01:26 +01:00
parent 3f8dbb3f36
commit 2ad220b51f

View File

@ -61,10 +61,11 @@ const System = {
*/ */
Page.showWaitSplashScreen(tr("Loading server configuration")); Page.showWaitSplashScreen(tr("Loading server configuration"));
try { try {
ServerConfig.ensureLoaded(); await ServerConfig.ensureLoaded();
} catch(e) { } catch(e) {
console.error(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;
} }
/** /**