mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 08:16:17 -04:00
Always generate a PNG if the format isn't SVG
This commit is contained in:
parent
ed25017e2d
commit
ae5128a33a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue