mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Make server configuration mandatory to load the page
This commit is contained in:
parent
3f8dbb3f36
commit
2ad220b51f
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user