diff --git a/view/main.js b/view/main.js index 6484cb3..5969353 100755 --- a/view/main.js +++ b/view/main.js @@ -122,13 +122,4 @@ window.wsc_chat = wsc.channel('chat').listen(function(msg, err){ if( router.app.$route.path != 'inbox' ) gstore.data.notif[1].count += msg.msg.length -}).send({name: _SERVER.session.name}); - - - -/* (4) Clean sockets before page quit ----------------------------------------------------------*/ -window.onbeforeunload = function() { - wsc_chat.send('{"close": true}'); - wsc_connect.send('{"close": true}'); -}; \ No newline at end of file +}).send({name: _SERVER.session.name}); \ No newline at end of file