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:
parent
b95906d83e
commit
dc6d9160fe
@ -78,7 +78,7 @@ class AppGateway {
|
||||
subdomain = settings.subdomain;
|
||||
}
|
||||
|
||||
if(subdomain !== 'www') {
|
||||
if(subdomain) {
|
||||
redirectRoute = null;
|
||||
}
|
||||
|
||||
|
@ -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.');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user