mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
try create uri
This commit is contained in:
parent
31a77a6e19
commit
8476f53337
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ namespace Bit.App.Services
|
|||
|
||||
public void LaunchUri(string uri, Dictionary<string, object> options = null)
|
||||
{
|
||||
if(uri.StartsWith("http://") || uri.StartsWith("https://"))
|
||||
if((uri.StartsWith("http://") || uri.StartsWith("https://")) &&
|
||||
Uri.TryCreate(uri, UriKind.Absolute, out var parsedUri))
|
||||
{
|
||||
Browser.OpenAsync(uri, BrowserLaunchMode.External);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue