build fix

This commit is contained in:
tamaina 2023-02-09 13:12:16 +00:00
parent 29c6d8f37e
commit d1c41ad2e9

View File

@ -26,7 +26,7 @@ export async function detectType(path) {
if (type.mime === 'application/xml' && await checkSvg(path)) {
return TYPE_SVG;
}
if (isMimeImage(type.mime, 'safe-file')) {
if (!isMimeImage(type.mime, 'safe-file')) {
return TYPE_OCTET_STREAM;
}
return {