fix(crit): notify from server response (#7498)

Fixes #3166.
This commit is contained in:
Sabe Jones
2016-05-25 16:17:24 -05:00
parent 700d67d25b
commit 8ca3144563
2 changed files with 5 additions and 8 deletions

View File

@@ -82,14 +82,6 @@ habitrpg.controller('NotificationCtrl',
}
});
$rootScope.$watch('user._tmp.crit', function(after, before){
if (after == before || !after) return;
var amount = User.user._tmp.crit * 100 - 100;
// reset the crit counter
User.user._tmp.crit = undefined;
Notification.crit(amount);
});
$rootScope.$watch('user._tmp.drop', function(after, before){
// won't work when getting the same item twice?
if (_.isEqual(after, before) || !after) return;