Michelle Bu 12 éve
szülő
commit
a23d21560d
3 módosított fájl, 2 hozzáadás és 12 törlés
  1. 1 6
      demo/static/peer.js
  2. 1 6
      dist/peer.js
  3. 0 0
      dist/peer.min.js

+ 1 - 6
demo/static/peer.js

@@ -908,7 +908,6 @@ Peer.prototype._checkIn = function() {
       this._socketInit();
     }
   } else {
-    console.log('no id');
     this._socketInit();
     this._startXhrStream();
   }
@@ -960,7 +959,6 @@ Peer.prototype._handleStream = function(http, pad) {
 
 /** Start up websocket communications. */
 Peer.prototype._socketInit = function() {
-  console.log('socketInit');
   if (!!this._socket)
     return;
 
@@ -1225,17 +1223,14 @@ DataConnection.prototype._setupIce = function() {
 };
 
 DataConnection.prototype._handleBroker = function(type, data) {
-  console.log(type);
   if (this._socketOpen) {
     this._socket.send(data);
   } else {
-    console.log('http');
     var http = new XMLHttpRequest();
-    console.log(this._httpUrl);
     http.open('post', this._httpUrl + '/' + type, true);
     http.setRequestHeader('Content-Type', 'application/json');
     http.onload = function() {
-      console.log(http.responseText);
+      util.log(http.responseText);
     }
     http.send(data);
   }

+ 1 - 6
dist/peer.js

@@ -908,7 +908,6 @@ Peer.prototype._checkIn = function() {
       this._socketInit();
     }
   } else {
-    console.log('no id');
     this._socketInit();
     this._startXhrStream();
   }
@@ -960,7 +959,6 @@ Peer.prototype._handleStream = function(http, pad) {
 
 /** Start up websocket communications. */
 Peer.prototype._socketInit = function() {
-  console.log('socketInit');
   if (!!this._socket)
     return;
 
@@ -1225,17 +1223,14 @@ DataConnection.prototype._setupIce = function() {
 };
 
 DataConnection.prototype._handleBroker = function(type, data) {
-  console.log(type);
   if (this._socketOpen) {
     this._socket.send(data);
   } else {
-    console.log('http');
     var http = new XMLHttpRequest();
-    console.log(this._httpUrl);
     http.open('post', this._httpUrl + '/' + type, true);
     http.setRequestHeader('Content-Type', 'application/json');
     http.onload = function() {
-      console.log(http.responseText);
+      util.log(http.responseText);
     }
     http.send(data);
   }

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
dist/peer.min.js


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott