diff options
Diffstat (limited to 'web/pw-frontend/src/main.ts')
-rw-r--r-- | web/pw-frontend/src/main.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/web/pw-frontend/src/main.ts b/web/pw-frontend/src/main.ts index b9ec466..bbe6382 100644 --- a/web/pw-frontend/src/main.ts +++ b/web/pw-frontend/src/main.ts @@ -1,9 +1,7 @@ import App from './App.svelte' import init_wasm_module from "planetwars-rs"; -const wasm_url = new URL("../planetwars-rs/pkg/planetwars_rs_bg.wasm", import.meta.url) - -init_wasm_module(wasm_url).then(() => { +init_wasm_module().then(() => { const app = new App({ target: document.getElementById('app') }) |