diff options
Diffstat (limited to 'primedev/scripts/client')
-rw-r--r-- | primedev/scripts/client/scriptbrowserhooks.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/primedev/scripts/client/scriptbrowserhooks.cpp b/primedev/scripts/client/scriptbrowserhooks.cpp index 86b4a356..dcf051d2 100644 --- a/primedev/scripts/client/scriptbrowserhooks.cpp +++ b/primedev/scripts/client/scriptbrowserhooks.cpp @@ -9,7 +9,8 @@ void, __fastcall, (char* pUrl, char flags)) // clang-format on { bool bIsOriginOverlayEnabledOriginal = *bIsOriginOverlayEnabled; - if (flags & 2 && !strncmp(pUrl, "http", 4)) // custom force external browser flag + bool isHttp = !strncmp(pUrl, "http://", 7) || !strncmp(pUrl, "https://", 8); + if (flags & 2 && isHttp) // custom force external browser flag *bIsOriginOverlayEnabled = false; // if this bool is false, game will use an external browser rather than the origin overlay one OpenExternalWebBrowser(pUrl, flags); |