upd: view.main (fixed websocket close 'onbeforeunload')
This commit is contained in:
parent
dc02f564be
commit
19a9ab9dc4
|
@ -81,6 +81,6 @@ window.wsc_chat = window.wsc.channel('chat').listen(function(msg, err){
|
||||||
/* (4) Clean sockets before page quit
|
/* (4) Clean sockets before page quit
|
||||||
---------------------------------------------------------*/
|
---------------------------------------------------------*/
|
||||||
window.onbeforeunload = function() {
|
window.onbeforeunload = function() {
|
||||||
window.wdc_chat.ws.close();
|
window.wsc_chat.ws.close();
|
||||||
window.wdc_connect.ws.close();
|
window.wsc_connect.ws.close();
|
||||||
};
|
};
|
Loading…
Reference in New Issue