Skip to content

Commit

Permalink
Merge branch 'view-bit-plane-use-bytelength-not-length' of https://gi…
Browse files Browse the repository at this point in the history
  • Loading branch information
n1474335 committed Nov 25, 2022
2 parents 9ccc161 + 58b1fb8 commit c7f6954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/operations/ViewBitPlane.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)}">`;
Expand Down

0 comments on commit c7f6954

Please sign in to comment.