mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
pusher: remove duplicate code
This commit is contained in:
@@ -132,8 +132,6 @@ angular.module('habitrpg')
|
|||||||
partyId = user && $rootScope.user.party && $rootScope.user.party._id;
|
partyId = user && $rootScope.user.party && $rootScope.user.party._id;
|
||||||
if (!partyId) return;
|
if (!partyId) return;
|
||||||
|
|
||||||
connectToPusher(partyId);
|
|
||||||
|
|
||||||
// See if another tab is already connected to Pusher
|
// See if another tab is already connected to Pusher
|
||||||
if (!localStorage.getItem(tabIdKey)) {
|
if (!localStorage.getItem(tabIdKey)) {
|
||||||
connectToPusher(partyId);
|
connectToPusher(partyId);
|
||||||
|
|||||||
Reference in New Issue
Block a user