mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-03 05:28:03 +02:00
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:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user