Skip to content

Commit a256580

Browse files
committed
fixed import in readme
1 parent 816f850 commit a256580

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Too much boilerplate.
5353
#### UI (main window)
5454

5555
```js
56-
import { pair } from "https://xjsdev.github.io/iorpc/index.js";
56+
import { pair } from "https://unpkg.com/iorpc/index.esm.js";
5757

5858
const worker = new Worker("worker.js");
5959

@@ -71,7 +71,7 @@ async function run() {
7171
---
7272
#### Worker (worker.js)
7373
```js
74-
importScripts("https://xjsdev.github.io/iorpc/index.js");
74+
importScripts("https://unpkg.com/iorpc/index.js");
7575

7676
const { local, remote } = iorpc.pair({
7777
send: msg => postMessage(msg),

0 commit comments

Comments
 (0)