add comment

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-06-06 13:19:48 +01:00
parent 6daedaeb40
commit 4840aee8c8
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -231,6 +231,7 @@ const configFiles = [
`config.${document.domain}.json`, `config.${document.domain}.json`,
]; ];
// Loads a composite config made from applying the fields from each of the above configs in order to a common object
async function loadConfig() { async function loadConfig() {
// load all configs concurrently, await on them in order each overriding the previous if exists, error only all fail // load all configs concurrently, await on them in order each overriding the previous if exists, error only all fail
const promises = configFiles.map((configFile) => getConfig(configFile)); const promises = configFiles.map((configFile) => getConfig(configFile));