Fix config validation
This commit is contained in:
parent
0b48e09e4a
commit
b9807b3a7b
@ -107,8 +107,8 @@ export const getServerDefinitions = (config: LiveAtlasGlobalConfig): Map<string,
|
|||||||
throw new ConfigurationError(`Configuration object is missing`);
|
throw new ConfigurationError(`Configuration object is missing`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config !== 'undefined') {
|
if (typeof config.servers !== 'undefined') {
|
||||||
return validateLiveAtlasConfiguration(config.servers || {});
|
return validateLiveAtlasConfiguration(config.servers);
|
||||||
}
|
}
|
||||||
|
|
||||||
return validateDynmapConfiguration(window.config?.url || null);
|
return validateDynmapConfiguration(window.config?.url || null);
|
||||||
|
Loading…
Reference in New Issue
Block a user