diff --git a/static/js/mediastream/utils.js b/static/js/mediastream/utils.js index 619151b9..8872b90a 100644 --- a/static/js/mediastream/utils.js +++ b/static/js/mediastream/utils.js @@ -233,7 +233,7 @@ define([], function() { // The format of |codec| is 'NAME/RATE', e.g. 'opus/48000'. function maybePreferCodec(sdp, type, dir, codec) { var str = type + ' ' + dir + ' codec'; - if (codec === '') { + if (!codec) { trace('No preference on ' + str + '.'); return sdp; }