mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: automatically attempt reconnection on window focus
This commit is contained in:
@@ -70,6 +70,8 @@ socket = window.socket;
|
||||
.find('p')
|
||||
.translateText('[[error:socket-reconnect-failed]]')
|
||||
.one('click', app.reconnect);
|
||||
|
||||
$(window).one('focus', app.reconnect);
|
||||
});
|
||||
|
||||
socket.on('checkSession', function (uid) {
|
||||
|
||||
Reference in New Issue
Block a user