upd: view.main (fixed websocket close 'onbeforeunload')

This commit is contained in:
xdrm-brackets 2017-12-04 22:56:30 +01:00
parent dc02f564be
commit 19a9ab9dc4
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}; };