mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 16:02:14 +00:00
pusher: when disconnecting from tab because of inactivity, do not connect other tab
This commit is contained in:
parent
e3b9636c42
commit
f90a31b4be
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue