Only insert sources into the fileMap if not already there

This allows us to setup the fileMap correctly for testing so
that it never tries to fetch assets from the CDN.
This commit is contained in:
Bryan Housel
2021-08-16 13:23:38 -04:00
parent 99cad0b7a4
commit bb84962e5d
2 changed files with 13 additions and 16 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ function setNsiSources() {
let fileMap = fileFetcher.fileMap();
for (const k in sources) {
fileMap[k] = sources[k];
if (!fileMap[k]) fileMap[k] = sources[k];
}
}