Fix validate-icons script

main
Elbert Alias 7 years ago
parent 12a5326a3b
commit 5596ed801e

@ -30,7 +30,7 @@ for (app in json.apps) {
} else if ( buffer.mime !== 'image/png' ) {
throw new Error('Incorrect mimetype "' + buffer.mime + '" when expected PNG for app "' + app + '": src/icons/' + iconPath);
}
} else if ( type === 'svg' ) {
} else if ( ext === '.svg' ) {
if ( !isSvg(fs.readFileSync(path)) ) {
throw new Error('Incorrect mimetype when expected SVG for app "' + app + '": src/icons/' + iconPath);
}

Loading…
Cancel
Save