Slightly delay the disconnected modal

So it's not displayed when quiting or refreshing the page
master
Daniel Berteaud 11 years ago
parent eb90707b39
commit dfe38a654d
  1. 4
      public/js/vroom.js

@ -1294,7 +1294,9 @@ function initVroom(room) {
// Detect connection lost // Detect connection lost
webrtc.connection.socket.on('disconnect', function(){ webrtc.connection.socket.on('disconnect', function(){
$('#disconnected').modal('show'); setTimeout(function(){
$('#disconnected').modal('show');
}, 2000);
}); });
// Do not close the dropdown menus (invite/conf) when filling fields // Do not close the dropdown menus (invite/conf) when filling fields

Loading…
Cancel
Save