فهرست منبع

Fix error message for invalid key

Yuki Ito 11 سال پیش
والد
کامیت
19242a165b
3فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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');
       this._abort('unavailable-id', 'ID `' + this.id + '` is taken');
       break;
       break;
     case 'INVALID-KEY': // The given API key cannot be found.
     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;
       break;
 
 
     //
     //

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 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');
       this._abort('unavailable-id', 'ID `' + this.id + '` is taken');
       break;
       break;
     case 'INVALID-KEY': // The given API key cannot be found.
     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;
       break;
 
 
     //
     //

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است