Skip to content

Conversation

@naugtur
Copy link

@naugtur naugtur commented Oct 30, 2025

This change allows the end-user of canvas and react-canvas to use the previously undocumented wasmBinary config field to pass an ArrayBuffer directly.

We've arrived at this as a solution for using Rive without giving it access to fetch and XHR at all
(it's frowned upon by browser extension review process to have code that could, even potentially, load sources from the web and execute within the extension)

We're running Rive under LavaMoat, so we can deny it access to fetch while keeping it for ourselves.

The option seemed very convenient, so I thought I'd offer it as a contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant