Michelle Bu hace 12 años
padre
commit
401e2ae225
Se han modificado 2 ficheros con 4 adiciones y 12 borrados
  1. 4 12
      dist/peer.js
  2. 0 0
      dist/peer.min.js

+ 4 - 12
dist/peer.js

@@ -1498,7 +1498,6 @@ function DataConnection(peer, dc, options) {
   EventEmitter.call(this);
 
   options = util.extend({
-    reliable: false,
     serialization: 'binary'
   }, options);
 
@@ -1941,17 +1940,10 @@ ConnectionManager.prototype.connect = function(options) {
     return;
   }
 
-  if (util.browserisms === 'Firefox') {
-    options = util.extend({
-      label: 'peerjs',
-      reliable: true
-    }, options);
-  } else {
-    options = util.extend({
-      label: 'peerjs',
-      reliable: false
-    }, options);
-  }
+  options = util.extend({
+    label: 'peerjs',
+    reliable: (util.browserisms === 'Firefox')
+  }, options);
 
   // Check if label is taken...if so, generate a new label randomly.
   while (!!this.connections[options.label]) {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/peer.min.js


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio