Commit c3cf34b
authored
Calculate fetchBase once at toplevel
> It's important to note that this will not reference the <script> element if the code in the script is being called as a callback or event handler; it will only reference the element while it's initially being processed.
https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript
Base was applied to the first wasm file, but not to subsequent files. This is an issue if you're loading a page at /foo/bar/baz and have your wasm hosted at /client.bc.wasm.assets, only appears in separate compilation.1 parent 090b7b2 commit c3cf34b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| 474 | + | |
474 | 475 | | |
475 | | - | |
476 | | - | |
| 476 | + | |
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
| |||
0 commit comments