mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 05:31:58 +02:00
Fix error in AppGateway logic
This commit is contained in:
parent
b95906d83e
commit
dc6d9160fe
|
@ -78,7 +78,7 @@ class AppGateway {
|
||||||
subdomain = settings.subdomain;
|
subdomain = settings.subdomain;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(subdomain !== 'www') {
|
if(subdomain) {
|
||||||
redirectRoute = null;
|
redirectRoute = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@ export function getSubdomainSettings(subdomain) {
|
||||||
if(settings.length === 1) {
|
if(settings.length === 1) {
|
||||||
return settings[0];
|
return settings[0];
|
||||||
} else if(settings.length === 0) {
|
} else if(settings.length === 0) {
|
||||||
|
console.warn('There are no subdomain settings for the subdomain: ' + subdomain);
|
||||||
return appConstants.defaultDomain;
|
return appConstants.defaultDomain;
|
||||||
// throw new Error('There are no subdomain settings for the subdomain: ' + subdomain);
|
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Matched multiple subdomains. Adjust constants file.');
|
throw new Error('Matched multiple subdomains. Adjust constants file.');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user