feat(analytics): Track low health modal

This commit is contained in:
Sabe Jones
2015-09-02 17:03:32 -04:00
parent 1a675b8461
commit e6068b23a7

View File

@@ -9,7 +9,7 @@ habitrpg.controller('NotificationCtrl',
$rootScope.playSound('Death'); $rootScope.playSound('Death');
$rootScope.openModal('death', {keyboard:false, backdrop:'static'}); $rootScope.openModal('death', {keyboard:false, backdrop:'static'});
} else if (after <= 30 && !User.user.flags.warnedLowHealth) { } else if (after <= 30 && !User.user.flags.warnedLowHealth) {
$rootScope.openModal('lowHealth', {keyboard:false, backdrop:'static', controller:'UserCtrl'}); $rootScope.openModal('lowHealth', {keyboard:false, backdrop:'static', controller:'UserCtrl', track:'Health Warning'});
} }
if (after == before) return; if (after == before) return;
if (User.user.stats.lvl == 0) return; if (User.user.stats.lvl == 0) return;