mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
Tidied up Steganography operations. FileType and toBase64 functions now accept ArrayBuffers.
This commit is contained in:
parent
5bc5c0df90
commit
eb769c7fb4
28 changed files with 81 additions and 75 deletions
|
@ -51,7 +51,7 @@ class ParseQRCode extends Operation {
|
|||
async run(input, args) {
|
||||
const [normalise] = args;
|
||||
|
||||
if (!isImage(new Uint8Array(input))) {
|
||||
if (!isImage(input)) {
|
||||
throw new OperationError("Invalid file type.");
|
||||
}
|
||||
return await parseQrCode(input, normalise);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue