Browse Source

Merge pull request #122 from mururu/fix-error-message

Fix error message for invalid key :+1:
Eric Zhang 11 năm trước cách đây
mục cha
commit
3d57a27746
3 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      dist/peer.js
  2. 0 0
      dist/peer.min.js
  3. 1 1
      lib/peer.js

+ 1 - 1
dist/peer.js

@@ -1507,7 +1507,7 @@ Peer.prototype._handleMessage = function(message) {
       this._abort('unavailable-id', 'ID `' + this.id + '` is taken');
       break;
     case 'INVALID-KEY': // The given API key cannot be found.
-      this._abort('invalid-key', 'API KEY "' + this._key + '" is invalid');
+      this._abort('invalid-key', 'API KEY "' + this.options.key + '" is invalid');
       break;
 
     //

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/peer.min.js


+ 1 - 1
lib/peer.js

@@ -155,7 +155,7 @@ Peer.prototype._handleMessage = function(message) {
       this._abort('unavailable-id', 'ID `' + this.id + '` is taken');
       break;
     case 'INVALID-KEY': // The given API key cannot be found.
-      this._abort('invalid-key', 'API KEY "' + this._key + '" is invalid');
+      this._abort('invalid-key', 'API KEY "' + this.options.key + '" is invalid');
       break;
 
     //

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác