Be less strict on images of unofficial themes

This commit is contained in:
Pieter Vander Vennet 2022-02-14 22:21:01 +01:00
parent 6b1ec7d754
commit f339fff04d
2 changed files with 8 additions and 5 deletions

View file

@ -74,7 +74,7 @@ class ValidateTheme extends DesugaringStep<LayoutConfigJson> {
}
{
// Check images: are they local, are the licenses there, is the theme icon square, ...
const images = new ExtractImages().convertStrict(json, "validation")
const images = new ExtractImages(this._isBuiltin).convertStrict(json, "validation")
const remoteImages = images.filter(img => img.indexOf("http") == 0)
for (const remoteImage of remoteImages) {
errors.push("Found a remote image: " + remoteImage + " in theme " + json.id + ", please download it.")