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:
Seb. Vandsebdotv authored and GitHub committed 2025-04-29 08:35:09 -05:00
1 parent 74789c4b13
commit 741eb0a5e6
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,7 @@ r#" <script>
window.__wasm_split_main_initSync = initSync;
// 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) {
wasm.main();
}