mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
correctly reconnect to pusher after inactivity
This commit is contained in:
@@ -112,6 +112,7 @@ angular.module('habitrpg')
|
|||||||
|
|
||||||
var awaitActivity = function() {
|
var awaitActivity = function() {
|
||||||
$(document).off('mousemove keydown mousedown touchstart', awaitActivity);
|
$(document).off('mousemove keydown mousedown touchstart', awaitActivity);
|
||||||
|
connectToPusher(partyId);
|
||||||
// Limit of 1 connected tab is disabled for now
|
// Limit of 1 connected tab is disabled for now
|
||||||
// if (!localStorage.getItem(tabIdKey) || localStorage.getItem(tabIdKey) === tabId) {
|
// if (!localStorage.getItem(tabIdKey) || localStorage.getItem(tabIdKey) === tabId) {
|
||||||
// connectToPusher(partyId);
|
// connectToPusher(partyId);
|
||||||
|
|||||||
Reference in New Issue
Block a user