Commit 49e6c9e0 authored by chechunchi's avatar chechunchi

fix neos deploy

parent ed0097f1
Pipeline #20736 passed with stages
in 14 minutes and 23 seconds
......@@ -83,9 +83,11 @@ const WaitRoom = () => {
await initStrings();
// 初始化wasm
await rustInit(
new URL("rust_src_bg.wasm", `${import.meta.env.BASE_URL}assets/`)
);
const url =
import.meta.env.BASE_URL == "/"
? undefined
: new URL("rust_src_bg.wasm", `${import.meta.env.BASE_URL}assets/`);
await rustInit(url);
};
init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment