mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04:00
Fix invalid file type error
This commit is contained in:
parent
c97e77c765
commit
99bef09e0e
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class ParseQRCode extends Operation {
|
||||||
async run(input, args) {
|
async run(input, args) {
|
||||||
const [normalise] = args;
|
const [normalise] = args;
|
||||||
|
|
||||||
if (!isImage(input)) {
|
if (!isImage(new Uint8Array(input))) {
|
||||||
throw new OperationError("Invalid file type.");
|
throw new OperationError("Invalid file type.");
|
||||||
}
|
}
|
||||||
return await parseQrCode(input, normalise);
|
return await parseQrCode(input, normalise);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue