From 6486fdf539002041a95efcbfad7c4a6f14f81757 Mon Sep 17 00:00:00 2001 From: Thomas Chung Date: Sat, 29 Apr 2023 21:32:58 +1000 Subject: [PATCH] Fix always false conditional --- html/janus.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }