Skip to content

Commit

Permalink
Fix always false conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
i8-pi committed Apr 29, 2023
1 parent 61d7624 commit 6486fdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions html/janus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6486fdf

Please sign in to comment.