Permalink
Browse files

force certain options values for Firefox.

  • Loading branch information...
1 parent c2852bf commit c5ba1dbd4ba4546f06e9610d3021e79c736ca07d @michelle michelle committed Apr 1, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/dataconnection.js
View
6 lib/dataconnection.js
@@ -14,10 +14,12 @@ function DataConnection(peer, dc, options) {
this.open = false;
this.label = options.label;
+ // Firefox is not this finely configurable.
this.metadata = options.metadata;
- this.serialization = options.serialization;
+ this.serialization = util.browserisms !== 'Firefox' ? options.serialization : 'binary';
+ this._isReliable = util.browserisms !== 'Firefox' ? options.reliable : true;
+
this.peer = peer;
- this._isReliable = options.reliable;
this._dc = dc;
if (!!this._dc) {

0 comments on commit c5ba1db

Please sign in to comment.