Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaskia committed Jan 9, 2025
1 parent 82af889 commit 1550477
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="UTF-8" />
<link rel="stylesheet" href="style.css">
<link rel="preload" href="/./wasm/editor_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
<link rel="preload" href="/./wasm/editor.js" as="script">
<link rel="preload" href="./wasm/editor_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
<link rel="preload" href="./wasm/editor.js" as="script">
</head>
<body>
<div id="main"></div>
<script>
// We can't use a module script here because we need to start the script immediately when streaming
import("/./wasm/editor.js").then(
import("./wasm/editor.js").then(
({ default: init }) => {
init("/./wasm/editor_bg.wasm").then((wasm) => {
init("./wasm/editor_bg.wasm").then((wasm) => {
if (wasm.__wbindgen_start == undefined) {
wasm.main();
}
Expand Down

0 comments on commit 1550477

Please sign in to comment.