2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-19 09:43:44 +00:00

Merge branch 'view-bit-plane-use-bytelength-not-length' of https://github.com/mikecat/CyberChef

This commit is contained in:
n1474335
2022-11-25 12:07:01 +00:00

View File

@@ -90,7 +90,7 @@ class ViewBitPlane extends Operation {
* @returns {html} * @returns {html}
*/ */
present(data) { present(data) {
if (!data.length) return ""; if (!data.byteLength) return "";
const type = isImage(data); const type = isImage(data);
return `<img src="data:${type};base64,${toBase64(data)}">`; return `<img src="data:${type};base64,${toBase64(data)}">`;