diff --git a/config.js b/config.js index 9282864b0..233e622ea 100644 --- a/config.js +++ b/config.js @@ -84,6 +84,9 @@ var defaultConfig = { // for copay.io: // clientId: '1036948132229-biqm3b8sirik9lt5rtvjo9kjjpotn4ac.apps.googleusercontent.com', }, + + developmentFeatures: true + }; if (typeof module !== 'undefined') module.exports = defaultConfig; diff --git a/js/routes.js b/js/routes.js index f5e55b273..8f8126318 100644 --- a/js/routes.js +++ b/js/routes.js @@ -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