Fix Wasm import URL in integrations

This commit is contained in:
Greg Johnston 2022-12-14 07:12:36 -05:00
parent f17c7fdb90
commit f6acecd3ad

View file

@ -205,7 +205,7 @@ where IV: IntoView
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="modulepreload" href="{pkg_path}.js">
<link rel="preload" href="{pkg_path}.wasm" as="fetch" type="application/wasm" crossorigin="">
<script type="module">import init, {{ hydrate }} from '{pkg_path}.js'; init('{pkg_path}.wasm').then(hydrate);</script>
<script type="module">import init, {{ hydrate }} from '{pkg_path}.js'; init('{pkg_path}_bg.wasm').then(hydrate);</script>
{leptos_autoreload}
"#
);