Skip to content

Commit

Permalink
fix(typecheck): review check for ArrayBuffer
Browse files Browse the repository at this point in the history
Apparently there's not a good easy way to check for something
being an ArrayBuffer (isView returns false).  Since it's an
error condition anyway let it error out somewhere else.
  • Loading branch information
pieper authored May 6, 2024
1 parent d2e2371 commit 8524ebe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions examples/vtkDisplay/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,6 @@ <h2>Volume:</h2>
//
function part10ToVolumeActor(part10) {
part10 = Array.isArray(part10) ? part10[0] : part10;
if (!ArrayBuffer.isView(part10)) {
console.error("Invalid part10 binary retrieved", part10);
return;
}

dataset = DICOMZero.datasetFromArrayBuffer(part10);

Expand Down

0 comments on commit 8524ebe

Please sign in to comment.