1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

Fix error in AppGateway logic

This commit is contained in:
Tim Daubenschütz 2015-10-01 16:59:44 +02:00
parent b95906d83e
commit dc6d9160fe
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class AppGateway {
subdomain = settings.subdomain;
}
if(subdomain !== 'www') {
if(subdomain) {
redirectRoute = null;
}

View File

@ -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.');
}