diff --git a/src/index.android.js b/src/index.android.js index 25fbf980..d6e0ab17 100644 --- a/src/index.android.js +++ b/src/index.android.js @@ -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 }); diff --git a/src/index.ios.js b/src/index.ios.js index 40d0fe7c..0ee569b7 100644 --- a/src/index.ios.js +++ b/src/index.ios.js @@ -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 });