From dc6d9160fe5b53a4f81979af591c81c2cda039ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Thu, 1 Oct 2015 16:59:44 +0200 Subject: [PATCH] Fix error in AppGateway logic --- js/app.js | 2 +- js/utils/constants_utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index dcd506fc..077e2f52 100644 --- a/js/app.js +++ b/js/app.js @@ -78,7 +78,7 @@ class AppGateway { subdomain = settings.subdomain; } - if(subdomain !== 'www') { + if(subdomain) { redirectRoute = null; } diff --git a/js/utils/constants_utils.js b/js/utils/constants_utils.js index 34786af5..8bf408d1 100644 --- a/js/utils/constants_utils.js +++ b/js/utils/constants_utils.js @@ -8,8 +8,8 @@ export function getSubdomainSettings(subdomain) { if(settings.length === 1) { return settings[0]; } else if(settings.length === 0) { + console.warn('There are no subdomain settings for the subdomain: ' + subdomain); return appConstants.defaultDomain; - // throw new Error('There are no subdomain settings for the subdomain: ' + subdomain); } else { throw new Error('Matched multiple subdomains. Adjust constants file.'); }