mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Merge branch 'view-bit-plane-use-bytelength-not-length' of https://github.com/mikecat/CyberChef
This commit is contained in:
commit
c7f6954b97
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…
Add table
Add a link
Reference in a new issue