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){