1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-30 07:13:41 +02:00

Slightly delay the disconnected modal

So it's not displayed when quiting or refreshing the page
This commit is contained in:
Daniel Berteaud 2014-06-11 23:08:47 +02:00
parent eb90707b39
commit dfe38a654d

View File

@ -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