simplify tests and add console.log for debugging

This commit is contained in:
Matteo Pagliazzi
2016-05-26 21:54:26 +02:00
parent 8292903444
commit 3c338ddcd7
4 changed files with 7 additions and 3 deletions

View File

@@ -20,7 +20,9 @@ angular.module('habitrpg')
// Something has changed on the user object that was not tracked here, sync the user
if (isNotSync && ($rootScope.User.user._v - oldUserV) > 1) {
console.log('before sync', Date.now())
$rootScope.User.sync();
console.log('after sync', Date.now())
}
}
}