Skip to content

Commit

Permalink
fix(syntax): fix type checking for Array and ArrayBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
pieper authored May 6, 2024
1 parent b77d57c commit b5c8dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/vtkDisplay/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ <h2>Volume:</h2>
// a vtkVolume (actor) ready to render
//
function part10ToVolumeActor(part10) {
part10 = typeof part10 == "Array" ? part10[0] : part10;
if (typeof part10 != "ArrayBuffer") {
part10 = Array.isArray(part10) ? part10[0] : part10;
if (!ArrayBuffer.isView(part10) {
console.error("Invalid part10 binary retrieved", part10);
return;
}
Expand Down

0 comments on commit b5c8dcb

Please sign in to comment.