1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-19 17:53:47 +00:00

base domain proerpty for domain name

This commit is contained in:
Kyle Spearrin
2016-06-26 00:32:22 -04:00
parent 954e2294c0
commit 76cf566c9e
4 changed files with 23 additions and 6 deletions

View File

@@ -81,14 +81,16 @@ namespace Bit.App.Models.Page
try
{
var host = new Uri(Uri).Host;
DomainName domain;
if(DomainName.TryParse(Uri, out domain))
if(DomainName.TryParse(host, out domain))
{
_uriHost = domain.Domain;
_uriHost = domain.BaseDomain;
}
else
{
_uriHost = new Uri(Uri).Host;
_uriHost = host;
}
return _uriHost;