MCPcopy Create free account
hub / github.com/cppla/ServerStatus / normalizeAdminConfig

Function normalizeAdminConfig

web/js/app.js:691–697  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

689};
690
691function normalizeAdminConfig(config){
692 const normalized = config && typeof config === 'object' ? config : {};
693 ['servers','monitors','sslcerts','watchdog'].forEach(key => {
694 if(!Array.isArray(normalized[key])) normalized[key] = [];
695 });
696 return normalized;
697}
698function activeConfigDef(){
699 return CONFIG_TYPES[S.admin.selectedType] || CONFIG_TYPES.servers;
700}

Callers 4

loadConfigFunction · 0.85
configItemsFunction · 0.85
saveConfigItemFunction · 0.85
deleteConfigItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected