mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -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]));
|
outputData += String.fromCharCode(parseInt(data[i]));
|
||||||
}
|
}
|
||||||
return outputData;
|
return outputData;
|
||||||
} else if (format === "PNG") {
|
} else {
|
||||||
let dataURI = "data:";
|
let dataURI = "data:";
|
||||||
const type = Magic.magicFileType(data);
|
const type = Magic.magicFileType(data);
|
||||||
if (type && type.mime.indexOf("image") === 0){
|
if (type && type.mime.indexOf("image") === 0){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue