1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-27 12:26:31 +01:00

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

View File

@ -158,7 +158,15 @@ namespace Bit.App.Pages
private void WebCell_Tapped(object sender, EventArgs e) private void WebCell_Tapped(object sender, EventArgs e)
{ {
_googleAnalyticsService.TrackAppEvent("OpenedTool", "Web"); _googleAnalyticsService.TrackAppEvent("OpenedTool", "Web");
Device.OpenUri(new Uri("https://vault.bitwarden.com")); 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) private void ShareCell_Tapped(object sender, EventArgs e)