stability improvements of CopyrightController

This commit is contained in:
tmshv committed 2015-08-13 10:41:48 +03:00
1 parent 16dc05b2db
commit 5ad7caf844
1 file changed
+8 -1
+8 -1
View File
@@ -4,7 +4,14 @@ module.exports = function (app) {
$scope.now = new Date().getFullYear();
$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 == '/';
});
});
};