mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-06-03 17:34:07 +02:00
Make BrowserUtils.OpenExternalBrowser ignore empty urls
This commit is contained in:
parent
6ea95342a0
commit
f39e668f8d
@ -39,6 +39,8 @@ public static bool IsValidUrl(string url){
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void OpenExternalBrowser(string url){
|
public static void OpenExternalBrowser(string url){
|
||||||
|
if (string.IsNullOrWhiteSpace(url))return;
|
||||||
|
|
||||||
if (IsValidUrl(url)){
|
if (IsValidUrl(url)){
|
||||||
OpenExternalBrowserUnsafe(url);
|
OpenExternalBrowserUnsafe(url);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user