diff --git a/static/sfu.js b/static/sfu.js index e5ed992..f7f6322 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -691,7 +691,7 @@ function addUser(id, name) { function delUser(id, name) { if(!name) name = null; - if(!id in users) + if(!(id in users)) throw new Error('Unknown user id'); if(users[id] !== name) throw new Error('Inconsistent user name');