mirror of
https://github.com/gchq/CyberChef.git
synced 2026-02-04 06:20:34 -08:00
Correctly return image buffer to resolve #2124
This commit is contained in:
parent
74013dd343
commit
8ac26646f3
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ export function generateQrCode(input, format, moduleSize, margin, errorCorrectio
|
|||
case "PDF":
|
||||
return Utils.strToArrayBuffer(qrImage);
|
||||
case "PNG":
|
||||
return qrImage.buffer;
|
||||
return qrImage.buffer.slice(qrImage.byteOffset, qrImage.byteLength + qrImage.byteOffset);
|
||||
default:
|
||||
throw new OperationError("Unsupported QR code format.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue