feat: automatically attempt reconnection on window focus

v1.18.x
Julian Lam 4 years ago
parent 0096cf178a
commit 8cc61f1197

@ -70,6 +70,8 @@ socket = window.socket;
.find('p') .find('p')
.translateText('[[error:socket-reconnect-failed]]') .translateText('[[error:socket-reconnect-failed]]')
.one('click', app.reconnect); .one('click', app.reconnect);
$(window).one('focus', app.reconnect);
}); });
socket.on('checkSession', function (uid) { socket.on('checkSession', function (uid) {

Loading…
Cancel
Save