Skip to content

Commit

Permalink
add clarifying comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Dec 12, 2024
1 parent 89fea41 commit d3bf174
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/packages/looker/src/lookers/abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,10 @@ export abstract class AbstractLooker<
} else {
arrayBuffers.push(buffer);
}
} else {
} else if (buffer.byteLength) {
// hope we don't run into this edge case (old browser)
// if we do, we'll just copy the buffer
// sometimes detached buffers have bytelength > 0
// if we run into this case, we'll just attempt to transfer the buffer
// might get a DataCloneError if user is switching colors too fast
arrayBuffers.push(buffer);
}
Expand Down

0 comments on commit d3bf174

Please sign in to comment.