fixes: appliedTags, add moment to rootScope (repeat i18n issues). Also,

discard the sync-queue if errors were detected. Previously, if an op
triggered server error, the op is still in the queue and will keep
trying. Thus, in-browser user is corrupt - they'll need to logout /
clear localStorage. This *should* fix that, while still allowing the
sync-queue to build up when offline (status appears to == 0 in those
cases). @paglias just FYI - should be good, but wanna loop you in just
in case.
This commit is contained in:
Tyler Renelle
2013-12-15 12:11:25 -07:00
parent bc0034f022
commit 774775de7a
3 changed files with 20 additions and 12 deletions

View File

@@ -11,6 +11,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
$rootScope.modals.achievements = {};
$rootScope.User = User;
$rootScope.user = user;
$rootScope.moment = window.moment;
$rootScope.settings = User.settings;
$rootScope.Shared = window.habitrpgShared;
$rootScope.Content = window.habitrpgShared.content;