pusher: remove duplicate code

This commit is contained in:
Matteo Pagliazzi
2016-09-08 19:05:22 +02:00
parent d4dc455926
commit 459a41a5ac

View File

@@ -132,8 +132,6 @@ angular.module('habitrpg')
partyId = user && $rootScope.user.party && $rootScope.user.party._id;
if (!partyId) return;
connectToPusher(partyId);
// See if another tab is already connected to Pusher
if (!localStorage.getItem(tabIdKey)) {
connectToPusher(partyId);