mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
pusher: when disconnecting from tab because of inactivity, do not connect other tab
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user