fix: use ip address instead of window location
This commit is contained in:
parent
6088f2e573
commit
adc5965b32
1 changed files with 2 additions and 2 deletions
|
|
@ -46,8 +46,8 @@
|
||||||
customPort: source.customPort
|
customPort: source.customPort
|
||||||
});
|
});
|
||||||
const { organization, htmlUrl } = source;
|
const { organization, htmlUrl } = source;
|
||||||
const { fqdn } = settings;
|
const { fqdn, ipv4, ipv6 } = settings;
|
||||||
const host = dev ? getAPIUrl() : fqdn ? fqdn : `http://${window.location.host}` || '';
|
const host = dev ? getAPIUrl() : fqdn ? fqdn : `http://${ipv4 || ipv6}` || '';
|
||||||
const domain = getDomain(fqdn);
|
const domain = getDomain(fqdn);
|
||||||
|
|
||||||
let url = 'settings/apps/new';
|
let url = 'settings/apps/new';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue