From dfe38a654df24fcdeceaa262d3454dfa8c1cce21 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 11 Jun 2014 23:08:47 +0200 Subject: [PATCH] Slightly delay the disconnected modal So it's not displayed when quiting or refreshing the page --- public/js/vroom.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index 79c5e19..8f7f146 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -1294,7 +1294,9 @@ function initVroom(room) { // Detect connection lost 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