Jelajahi Sumber

fixes peerjs side of #29

Michelle Bu 12 tahun lalu
induk
melakukan
31839b679c
3 mengubah file dengan 5 tambahan dan 9 penghapusan
  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]) {

File diff ditekan karena terlalu besar
+ 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]) {

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini