Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different wasm file path in Chrome and Firefox #45

Closed
makinita opened this issue Jun 10, 2021 · 2 comments
Closed

Different wasm file path in Chrome and Firefox #45

makinita opened this issue Jun 10, 2021 · 2 comments

Comments

@makinita
Copy link

The integration of web-ifc-viewer in my project works fine in Firefox but not completely in Chrome.

Firefox loads the .wasm file from root: my-project.com/web-ifc.wasm
Chrome loads it prepending "js/": my-project.com/js/web-ifc.wasm

Even if I use setWasmPath('my-dir') chrome still prepends "js/":
my-project.com/js/my-dir/web-ifc.wasm (chrome)
my-project.com/my-dir/web-ifc.wasm (firefox)

Finally I could resolve it setting setWasmPath('../'), so all browsers loads wasm file from root

@makinita
Copy link
Author

moved to web-ifc-viewer

@antoniohof
Copy link

Also happens to me. Cant set up a URI wasm path, it always prepends the current url.

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

No branches or pull requests

2 participants