mirror of
https://github.com/bitwarden/mobile.git
synced 2024-09-27 03:52:57 +02:00
try create uri
This commit is contained in:
parent
31a77a6e19
commit
8476f53337
@ -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 New Issue
Block a user