Permalink
Browse files

force certain options values for Firefox.

  • Loading branch information...
1 parent 6060729 commit 11e781e6ac307ce9faf56a37c3ccca5ebefa5a33 @michelle michelle committed Apr 1, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/dataconnection.js
View
@@ -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 11e781e

Please sign in to comment.