Fix build: exempt socialImage from having to be a pure svg

This commit is contained in:
pietervdvn 2022-06-04 02:28:53 +02:00
parent b4f8debb77
commit 17a13918c2

View file

@ -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!")