mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
feat: add new dashboard (#2574)
* feat: add new dashboard * chore: comments * fix duplicate --------- Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
@@ -72,16 +72,16 @@ export class ConfigService {
|
||||
return window.isSecureContext || this.isTor()
|
||||
}
|
||||
|
||||
launchableAddress(info: InterfaceInfo): string {
|
||||
launchableAddress({ addressInfo }: InterfaceInfo): string {
|
||||
return this.isTor()
|
||||
? info.addressInfo.torHostname
|
||||
? addressInfo.torHostname
|
||||
: this.isLocalhost()
|
||||
? `https://${info.addressInfo.lanHostname}`
|
||||
? `https://${addressInfo.lanHostname}`
|
||||
: this.isLocal() || this.isIpv4() || this.isIpv6()
|
||||
? `https://${this.hostname}`
|
||||
: info.addressInfo.domainInfo?.subdomain
|
||||
? `https://${info.addressInfo.domainInfo.subdomain}${info.addressInfo.domainInfo.domain}`
|
||||
: `https://${info.addressInfo.domainInfo?.domain}`
|
||||
: addressInfo.domainInfo?.subdomain
|
||||
? `https://${addressInfo.domainInfo.subdomain}${addressInfo.domainInfo.domain}`
|
||||
: `https://${addressInfo.domainInfo?.domain}`
|
||||
}
|
||||
|
||||
getHost(): string {
|
||||
|
||||
Reference in New Issue
Block a user