From ae5128a33a6630b17c51dbf8c0c3afee8d154e61 Mon Sep 17 00:00:00 2001 From: j433866 Date: Fri, 21 Dec 2018 11:23:51 +0000 Subject: [PATCH] Always generate a PNG if the format isn't SVG --- src/core/operations/GenerateQRCode.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/operations/GenerateQRCode.mjs b/src/core/operations/GenerateQRCode.mjs index 2b260617..d634b1bd 100644 --- a/src/core/operations/GenerateQRCode.mjs +++ b/src/core/operations/GenerateQRCode.mjs @@ -85,7 +85,7 @@ class GenerateQRCode extends Operation { outputData += String.fromCharCode(parseInt(data[i])); } return outputData; - } else if (format === "PNG") { + } else { let dataURI = "data:"; const type = Magic.magicFileType(data); if (type && type.mime.indexOf("image") === 0){