Finetuning of usage within an iFrame

This commit is contained in:
Pieter Vander Vennet 2024-06-27 03:39:04 +02:00
parent 45235cab0f
commit a281381284
9 changed files with 192 additions and 119 deletions

View file

@ -336,14 +336,16 @@ export default class LayoutConfig implements LayoutInformation {
...json,
layers: json.layers.filter((l) => l["id"] !== "favourite"),
}
this.usedImages = Array.from(
const usedImages =
new ExtractImages(this.official, undefined)
.convertStrict(
jsonNoFavourites,
ConversionContext.construct([json.id], ["ExtractImages"])
)
.map((i) => i.path)
).sort()
.flatMap((i) => i.path)
usedImages.sort()
this.usedImages = Utils.Dedup(usedImages)
return this.usedImages
}
}