sys: Fixed opening custom protocols in the web browser

This commit is contained in:
WerWolv
2021-09-10 21:42:35 +02:00
parent 5c304c002b
commit b3d102419b

View File

@@ -169,7 +169,7 @@ namespace hex {
void openWebpage(std::string url) {
if (!url.starts_with("http://") && !url.starts_with("https://"))
if (url.find("://") == std::string::npos)
url = "https://" + url;
#if defined(OS_WINDOWS)