Skip to content

Commit

Permalink
Replace bytes with arrayBuffer
Browse files Browse the repository at this point in the history
Fixes #572
  • Loading branch information
UX3D-haertl committed Aug 29, 2024
1 parent 6e16cf7 commit 4909586
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ export default async () => {
});
};

const buffer = await model.mainFile[1].bytes();
return await validateBytes(buffer, {externalResourceFunction: externalRefFunction, uri: model.mainFile[0]});
const buffer = await model.mainFile[1].arrayBuffer();
return await validateBytes(new Uint8Array(buffer),
{externalResourceFunction: externalRefFunction, uri: model.mainFile[0]});
}
} catch (error) {
console.error(error);
Expand Down

0 comments on commit 4909586

Please sign in to comment.