mirror of
https://github.com/gchq/CyberChef
synced 2025-01-01 07:18:47 +00:00
ViewBitPlane.mjs: use byteLength instead of length to check validity of ArrayBuffer
This commit is contained in:
parent
ed8bd34915
commit
58b1fb8de5
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class ViewBitPlane extends Operation {
|
|||
* @returns {html}
|
||||
*/
|
||||
present(data) {
|
||||
if (!data.length) return "";
|
||||
if (!data.byteLength) return "";
|
||||
const type = isImage(data);
|
||||
|
||||
return `<img src="data:${type};base64,${toBase64(data)}">`;
|
||||
|
|
Loading…
Reference in a new issue