Always generate a PNG if the format isn't SVG
This commit is contained in:
parent
ed25017e2d
commit
ae5128a33a
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user