1 parent 63a8308 commit 6a6273bCopy full SHA for 6a6273b
3 files changed
index.js
@@ -351,7 +351,6 @@
351
};
352
}
353
354
- pair = iorpc.pair;
355
if (typeof exports !== 'undefined') {
356
module.exports = iorpc;
357
module.exports.default = iorpc;
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "iorpc",
3
- "version": "9.0.1",
+ "version": "9.0.2",
4
"keywords": [
5
"rpc",
6
"callback",
readme.md
@@ -73,7 +73,7 @@ async function run() {
73
```js
74
importScripts("https://xjsdev.github.io/iorpc/index.js");
75
76
-const { local, remote } = pair({
+const { local, remote } = iorpc.pair({
77
send: msg => postMessage(msg),
78
on: handler => onmessage = e => handler(e.data)
79
});
0 commit comments