buttplugio / buttplug-rs-ffi

FFI from buttplug-rs to Java and other languages
Other
88 stars 22 forks source link

fix: Revert "js: Add url to wasm file as argument to buttplugInit" #90

Closed blackspherefollower closed 2 years ago

blackspherefollower commented 2 years ago

This fixes #88 by reverting commit fe66645f19e43682b55ebfd51a2979036803b4d8

That change was supposed to make it possible to override the location of the Buttplug JS files, but instead it prevents a webpack path rewriting feature from working so that without a path, the library is no longer able to find the files to import.

Worse, due to a mix of JS and WASM and import statements between them, it's not actually possible to specify a path to a the Buttplug JS files and have a browser load them: doing so just results in MIME type checking errors.