stability improvements of CopyrightController
This commit is contained in:
1 parent
16dc05b2db
commit
5ad7caf844
1 file changed
+8
-1
@@ -4,7 +4,14 @@ module.exports = function (app) {
|
|||||||
$scope.now = new Date().getFullYear();
|
$scope.now = new Date().getFullYear();
|
||||||
|
|
||||||
$rootScope.$on('$routeChangeSuccess', function (event, current) {
|
$rootScope.$on('$routeChangeSuccess', function (event, current) {
|
||||||
$scope.developer = current['$$route'].originalPath == '/';
|
var originalPath;
|
||||||
|
try{
|
||||||
|
originalPath = current['$$route'].originalPath;
|
||||||
|
}catch(e){
|
||||||
|
originalPath = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.developer = originalPath == '/';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user