Skip to content

Commit 06d5210

Browse files
authored
Fix CEF rendering regression from 466c162
1 parent 206af46 commit 06d5210

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaBrowserDefs.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ int CLuaBrowserDefs::LoadBrowserURL(lua_State* luaVM)
247247
if (!argStream.HasErrors())
248248
{
249249
// Are we dealing with a remote website?
250-
if (strURL.substr(0, 7) == "https://" || strURL.substr(0, 8) == "https://")
250+
if (strURL.substr(0, 7) == "http://" || strURL.substr(0, 8) == "https://")
251251
{
252-
bool isLocalURL = strURL.substr(0, 11) == "https://mta/";
252+
bool isLocalURL = strURL.substr(0, 11) == "http://mta/";
253253
if (pWebBrowser->IsLocal() != isLocalURL)
254254
{
255255
lua_pushboolean(luaVM, false);
@@ -261,7 +261,7 @@ int CLuaBrowserDefs::LoadBrowserURL(lua_State* luaVM)
261261
}
262262
else
263263
{
264-
argStream.SetCustomError("Invalid URL scheme provided. Only https:// and https:// is supported.", "Invalid parameter");
264+
argStream.SetCustomError("Invalid URL scheme provided. Only http:// and https:// is supported.", "Invalid parameter");
265265
}
266266
}
267267

0 commit comments

Comments
 (0)