Browse Source

new version

Paul 5 years ago
parent
commit
3c14833034
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      package.json
  2. 1
    1
      src/client.ts

+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "ts-linker-sdk",
3
-  "version": "1.0.4",
3
+  "version": "1.0.5",
4 4
   "description": "linker's ts sdk",
5 5
   "main": "lib/src/client.js",
6 6
   "scripts": {

+ 1
- 1
src/client.ts View File

@@ -138,7 +138,7 @@ class Client {
138 138
     operator: string,
139 139
     listener: (data: string) => void,
140 140
   ): void {
141
-    this.listeners[Utils.crc32(operator)] = listener;
141
+    this.listeners.set(Utils.crc32(operator), listener);
142 142
   }
143 143
 
144 144
   /**