From 19a9ab9dc40578e3bed9eb6ca72c677e52bc5da6 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 4 Dec 2017 22:56:30 +0100 Subject: [PATCH] upd: view.main (fixed websocket close 'onbeforeunload') --- view/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/main.js b/view/main.js index c57a163..a583407 100755 --- a/view/main.js +++ b/view/main.js @@ -81,6 +81,6 @@ window.wsc_chat = window.wsc.channel('chat').listen(function(msg, err){ /* (4) Clean sockets before page quit ---------------------------------------------------------*/ window.onbeforeunload = function() { - window.wdc_chat.ws.close(); - window.wdc_connect.ws.close(); + window.wsc_chat.ws.close(); + window.wsc_connect.ws.close(); }; \ No newline at end of file