correctly reconnect to pusher after inactivity

This commit is contained in:
Matteo Pagliazzi
2016-09-07 17:00:43 +02:00
parent dafae31366
commit 41079a65c6

View File

@@ -112,6 +112,7 @@ angular.module('habitrpg')
var awaitActivity = function() {
$(document).off('mousemove keydown mousedown touchstart', awaitActivity);
connectToPusher(partyId);
// Limit of 1 connected tab is disabled for now
// if (!localStorage.getItem(tabIdKey) || localStorage.getItem(tabIdKey) === tabId) {
// connectToPusher(partyId);