forked from MapComplete/MapComplete
Fix build: exempt socialImage from having to be a pure svg
This commit is contained in:
parent
b4f8debb77
commit
17a13918c2
1 changed files with 4 additions and 0 deletions
|
@ -120,6 +120,10 @@ class LayerOverviewUtils {
|
|||
if(path.indexOf("assets/SocialImageTemplate") >= 0){
|
||||
continue
|
||||
}
|
||||
|
||||
if(path.indexOf("assets/SocialImage") >= 0){
|
||||
continue
|
||||
}
|
||||
const contents = readFileSync(path, "UTF8")
|
||||
if (contents.indexOf("data:image/png;") >= 0) {
|
||||
console.warn("The SVG at " + path + " is a fake SVG: it contains PNG data!")
|
||||
|
|
Loading…
Reference in a new issue