add development feature flag

This commit is contained in:
Manuel Araoz 2014-11-04 11:30:44 -03:00
commit 365216afc9
2 changed files with 13 additions and 6 deletions

View file

@ -84,6 +84,9 @@ var defaultConfig = {
// for copay.io:
// clientId: '1036948132229-biqm3b8sirik9lt5rtvjo9kjjpotn4ac.apps.googleusercontent.com',
},
developmentFeatures: true
};
if (typeof module !== 'undefined')
module.exports = defaultConfig;

View file

@ -69,15 +69,19 @@ angular
.when('/manage', {
templateUrl: 'views/manage.html',
logged: true
})
.when('/devLogin/:mail/:password', {
});
if (config.developmentFeatures) {
$routeProvider.when('/devLogin/:mail/:password', {
templateUrl: 'views/devLogin.html',
logged: false
})
.otherwise({
templateUrl: 'views/errors/404.html',
title: 'Error'
});
}
$routeProvider.otherwise({
templateUrl: 'views/errors/404.html',
title: 'Error'
});
});
//Setting HTML5 Location Mode