Hide threePeersEl when a peer leaves a room

If there's less than 3 peers
master
Daniel Berteaud 11 years ago
parent b228147906
commit 2406cbeecd
  1. 3
      public/js/vroom.js

@ -1122,6 +1122,9 @@ function initVroom(room) {
if (id != 'local'){
checkMoh();
}
if (countPeers() < 2){
$('.threePeersEl').hide(500);
}
});
// Error sending something through dataChannel

Loading…
Cancel
Save