Skip to content

Commit 3a1eb23

Browse files
committed
fix(hello-world-example): update browser use for 1.0.0-b.187
1 parent 5cde577 commit 3a1eb23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/hello-world/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>itk-wasm Browser Hello World!</title>
4+
<title>ITK-Wasm Browser Hello World!</title>
55
<meta charset="UTF-8" />
6-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/itk-wasm.min.js"></script>
76
</head>
87

98
<body>
109
<textarea readonly>WebAssembly output...</textarea>
1110

12-
<script>
11+
<script type="module">
12+
import { runPipeline } from "https://cdn.jsdelivr.net/npm/[email protected]/dist/bundles/itk-wasm-worker-embedded.js";
1313
const outputTextArea = document.querySelector("textarea");
1414
outputTextArea.textContent = "Loading...";
1515

1616
const wasmURL = new URL('emscripten-build/hello', document.location)
1717
const args = []
1818
const inputs = null
1919
const outputs = null
20-
itk.runPipeline(null, wasmURL, args, inputs, outputs).then(
20+
runPipeline(wasmURL, args, outputs, inputs).then(
2121
({ stdout, webWorker }) => {
2222
webWorker.terminate()
2323
outputTextArea.textContent = stdout

0 commit comments

Comments
 (0)