mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-15 10:42:23 +00:00
fix(ui-router): upgraded angular-ui-router, $anchorScroll no
longer supported. See https://github.com/angular-ui/ui-router/pull/715 for autoscroll attribute if we need to enable/disable ui-view autoscrolling in certain locations (cc @paglias)
This commit is contained in:
parent
4620dcebb9
commit
01180416ef
1 changed files with 0 additions and 5 deletions
|
|
@ -5,10 +5,6 @@ window.habitrpg = angular.module('habitrpg',
|
|||
'authServices', 'notificationServices', 'guideServices', 'authCtrl',
|
||||
'ui.bootstrap', 'ui.keypress', 'ui.router', 'chieffancypants.loadingBar', 'At', 'pasvaz.bindonce', 'infinite-scroll', 'ui.select2'])
|
||||
|
||||
// @see https://github.com/angular-ui/ui-router/issues/110 and https://github.com/HabitRPG/habitrpg/issues/1705
|
||||
// temporary hack until they have a better solution
|
||||
.value('$anchorScroll', angular.noop)
|
||||
|
||||
.constant("API_URL", "")
|
||||
.constant("STORAGE_USER_ID", 'habitrpg-user')
|
||||
.constant("STORAGE_SETTINGS_ID", 'habit-mobile-settings')
|
||||
|
|
@ -209,7 +205,6 @@ window.habitrpg = angular.module('habitrpg',
|
|||
return response;
|
||||
}
|
||||
function error(response) {
|
||||
debugger;
|
||||
// Offline
|
||||
if (response.status == 0 ||
|
||||
// don't know why we're getting 404 here, should be 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue