Use BaseUrl when opening web vault if defined (#360)

This commit is contained in:
BestPig 2018-08-20 19:32:16 +02:00 committed by Kyle Spearrin
parent d49e001b21
commit cc58f7730e
1 changed files with 9 additions and 1 deletions

View File

@ -158,8 +158,16 @@ namespace Bit.App.Pages
private void WebCell_Tapped(object sender, EventArgs e)
{
_googleAnalyticsService.TrackAppEvent("OpenedTool", "Web");
var appSettings = Resolver.Resolve<IAppSettingsService>();
if (!string.IsNullOrWhiteSpace(appSettings.BaseUrl))
{
Device.OpenUri(new Uri(appSettings.BaseUrl));
}
else
{
Device.OpenUri(new Uri("https://vault.bitwarden.com"));
}
}
private void ShareCell_Tapped(object sender, EventArgs e)
{