pusher: when disconnecting from tab because of inactivity, do not connect other tab

This commit is contained in:
Matteo Pagliazzi
2016-09-19 16:16:13 +02:00
parent e3b9636c42
commit f90a31b4be

View File

@@ -204,7 +204,7 @@ angular.module('habitrpg')
console.log('Disconnecting from Pusher for inactivity.');
api.pusher.disconnect();
window.onbeforeunload = null; // TODO use addEventListener
onDisconnect();
// onDisconnect();
var awaitActivity = function() {
$(document).off('mousemove keydown mousedown touchstart', awaitActivity);