Skip to content

Commit

Permalink
Create View with Uint8Array, not ArrayBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed Aug 2, 2024
1 parent 86f1622 commit 606995e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ window.createView = (options) => {
// TODO: Implement a more efficient way to transfer large files
data: {
...options.data,
buf: new Uint8Array(options.buf).buffer
buf: new Uint8Array(options.buf)
},
onSaveAnnotations: (annotations) => {
postMessage('onSaveAnnotations', { annotations });
Expand Down
2 changes: 1 addition & 1 deletion src/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ window.createView = (options) => {
container: document.getElementById('view'),
data: {
// TODO: Implement a more efficient way to transfer large files
buf: new Uint8Array(options.buf).buffer
buf: new Uint8Array(options.buf)
},
onSaveAnnotations: (annotations) => {
postMessage('onSaveAnnotations', { annotations });
Expand Down

0 comments on commit 606995e

Please sign in to comment.