Unverified Commit 5b33b7a7 authored by Ashley's avatar Ashley
Browse files

Add browser-demo

parent 868f6e51
#!/usr/bin/env sh
wasm-pack build --target web --out-dir ./browser-demo/pkg --no-typescript --release ../cli -- --no-default-features --features "browser"
wasm-pack build --target web --out-dir ./browser-demo/pkg --no-typescript --release ./.. -- --no-default-features --features "browser"
python -m SimpleHTTPServer 8000
......@@ -5,7 +5,7 @@
<title>Substrate node</title>
<link rel="shortcut icon" href="/favicon.png" />
<script type="module">
import { start_client, default as init } from './pkg/node_cli.js';
import { start_client, default as init } from './pkg/polkadot_cli.js';
import ws from './ws.js';
function log(msg) {
......@@ -14,7 +14,7 @@ function log(msg) {
async function start() {
log('Loading WASM');
await init('./pkg/node_cli_bg.wasm');
await init('./pkg/polkadot_cli_bg.wasm');
log('Successfully loaded WASM');
// Build our client.
Supports Markdown
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