1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-06 23:34:05 +02:00

Make BrowserUtils.OpenExternalBrowser ignore empty urls

This commit is contained in:
chylex 2017-03-19 10:13:24 +01:00
parent 6ea95342a0
commit f39e668f8d

View File

@ -39,6 +39,8 @@ public static bool IsValidUrl(string url){
}
public static void OpenExternalBrowser(string url){
if (string.IsNullOrWhiteSpace(url))return;
if (IsValidUrl(url)){
OpenExternalBrowserUnsafe(url);
}