mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
try create uri
This commit is contained in:
@@ -91,7 +91,8 @@ namespace Bit.App.Services
|
|||||||
|
|
||||||
public void LaunchUri(string uri, Dictionary<string, object> options = null)
|
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);
|
Browser.OpenAsync(uri, BrowserLaunchMode.External);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user