Skip to content

Commit 6a6273b

Browse files
committed
deleting the global variable pair
1 parent 63a8308 commit 6a6273b

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@
351351
};
352352
}
353353
};
354-
pair = iorpc.pair;
355354
if (typeof exports !== 'undefined') {
356355
module.exports = iorpc;
357356
module.exports.default = iorpc;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iorpc",
3-
"version": "9.0.1",
3+
"version": "9.0.2",
44
"keywords": [
55
"rpc",
66
"callback",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function run() {
7373
```js
7474
importScripts("https://xjsdev.github.io/iorpc/index.js");
7575

76-
const { local, remote } = pair({
76+
const { local, remote } = iorpc.pair({
7777
send: msg => postMessage(msg),
7878
on: handler => onmessage = e => handler(e.data)
7979
});

0 commit comments

Comments
 (0)