mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
added 500ms delay to disconnect message
This commit is contained in:
@@ -50,6 +50,7 @@ var socket,
|
|||||||
});
|
});
|
||||||
|
|
||||||
socket.on('disconnect', function(data){
|
socket.on('disconnect', function(data){
|
||||||
|
setTimeout(function() {
|
||||||
app.alert({
|
app.alert({
|
||||||
alert_id: 'connection_alert',
|
alert_id: 'connection_alert',
|
||||||
title: 'Disconnect',
|
title: 'Disconnect',
|
||||||
@@ -57,6 +58,7 @@ var socket,
|
|||||||
type: 'error',
|
type: 'error',
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
});
|
});
|
||||||
|
}, 500);
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('reconnecting', function(data) {
|
socket.on('reconnecting', function(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user