diff --git a/html/janus.js b/html/janus.js index 055d5cb21c0..3310ee0e45c 100644 --- a/html/janus.js +++ b/html/janus.js @@ -2339,9 +2339,9 @@ function Janus(gatewayCallbacks) { }; continue; } - if((typeof track.add === 'undefined' && track.add === null) && - (typeof track.remove === 'undefined' && track.remove === null) && - (typeof track.replace === 'undefined' && track.replace === null)) { + if(track.add == null && + track.remove == null && + track.replace == null) { // Let's default to 'add' track.add = true; }