Modified LaunchBrowser arg as optional

This commit is contained in:
Rowan 2021-05-03 12:37:47 +01:00
parent 3f37fb2936
commit 9a71dea1c9

View file

@ -3555,7 +3555,7 @@ static void LuaSetIntField(lua_State *L, const char *k, lua_Integer v) {
}
static int LuaLaunchBrowser(lua_State *L) {
const char *p = luaL_checkstring(L, 1);
const char *p = luaL_optstring(L, 1, "/");
LaunchBrowser(p);
return 1;
}