Be less strict on images of unofficial themes
This commit is contained in:
parent
6b1ec7d754
commit
f339fff04d
2 changed files with 8 additions and 5 deletions
|
@ -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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue