mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
fix small error on startup
This commit is contained in:
parent
20f2d75bbf
commit
fe52731393
1 changed files with 1 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ habitrpg.controller('MenuCtrl',
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.$on('$routeChangeSuccess', function(ev, current) {
|
$scope.$on('$routeChangeSuccess', function(ev, current) {
|
||||||
|
if(!current.$$route) return;
|
||||||
if(current.$$route.originalPath === "/tasks"){
|
if(current.$$route.originalPath === "/tasks"){
|
||||||
$scope.viewingOptions = false;
|
$scope.viewingOptions = false;
|
||||||
}else if(current.$$route.originalPath === "/options"){
|
}else if(current.$$route.originalPath === "/options"){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue