diff --git a/index.js b/index.js index 0fbc6736..f0f98b11 100644 --- a/index.js +++ b/index.js @@ -695,7 +695,7 @@ Peer.prototype._transformConstraints = function (constraints) { return constraints } - if ((constraints.mandatory || constraints.optional) && self._isChromium) { + if ((constraints.mandatory || constraints.optional) && !self._isChromium) { // convert to new format // Merge mandatory and optional objects, prioritizing mandatory