fix small error on startup

This commit is contained in:
Matteo Pagliazzi 2013-10-23 18:49:14 +02:00
parent 20f2d75bbf
commit fe52731393

View file

@ -24,6 +24,7 @@ habitrpg.controller('MenuCtrl',
}
$scope.$on('$routeChangeSuccess', function(ev, current) {
if(!current.$$route) return;
if(current.$$route.originalPath === "/tasks"){
$scope.viewingOptions = false;
}else if(current.$$route.originalPath === "/options"){