fix js deprecation warning in wasm init (#4054)
wasm-bindgen now expects an object as parameter, otherwise it issues a warning Co-authored-by: sebdotv <sebdotv@gmail.com>
This commit is contained in:
1 parent
74789c4b13
commit
741eb0a5e6
1 file changed
+1
-1
@@ -148,7 +148,7 @@ r#" <script>
|
|||||||
window.__wasm_split_main_initSync = initSync;
|
window.__wasm_split_main_initSync = initSync;
|
||||||
|
|
||||||
// Actually perform the load
|
// Actually perform the load
|
||||||
init("/{base_path}/{wasm_path}").then((wasm) => {
|
init({module_or_path: "/{base_path}/{wasm_path}"}).then((wasm) => {
|
||||||
if (wasm.__wbindgen_start == undefined) {
|
if (wasm.__wbindgen_start == undefined) {
|
||||||
wasm.main();
|
wasm.main();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user