Bläddra i källkod

fixes peerjs side of #29

Michelle Bu 12 år sedan
förälder
incheckning
31839b679c
3 ändrade filer med 5 tillägg och 9 borttagningar
  1. 3 5
      dist/peer.js
  2. 0 0
      dist/peer.min.js
  3. 2 4
      lib/connectionmanager.js

+ 3 - 5
dist/peer.js

@@ -1,4 +1,4 @@
-/*! peerjs.js build:0.1.7, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */
+/*! peerjs.js build:0.2.0, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */
 (function(exports){
 var binaryFeatures = {};
 binaryFeatures.useBlobBuilder = (function(){
@@ -1795,11 +1795,9 @@ ConnectionManager.prototype.connect = function(label) {
     return;
   }
 
-  var options = {
-    reliable: false,
-    serialization: 'binary',
+  var options = util.extend({
     label: label || 'peerjs'
-  };
+  }, this._options);
 
   // Check if label is taken...if so, generate a new label randomly.
   while (!!this.connections[options.label]) {

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
dist/peer.min.js


+ 2 - 4
lib/connectionmanager.js

@@ -256,11 +256,9 @@ ConnectionManager.prototype.connect = function(label) {
     return;
   }
 
-  var options = {
-    reliable: false,
-    serialization: 'binary',
+  var options = util.extend({
     label: label || 'peerjs'
-  };
+  }, this._options);
 
   // Check if label is taken...if so, generate a new label randomly.
   while (!!this.connections[options.label]) {

Vissa filer visades inte eftersom för många filer har ändrats