fix: More P2468R2 issues

This commit is contained in:
WerWolv
2023-02-02 21:13:56 +01:00
parent b1edede53a
commit 22ff033b5e
3 changed files with 4 additions and 5 deletions

View File

@@ -276,8 +276,7 @@ namespace hex {
}
void openWebpage(std::string url) {
if (url.find("://") == std::string::npos)
if (!url.contains("://"))
url = "https://" + url;
#if defined(OS_WINDOWS)