- Update.js.lua

This commit is contained in:
ParticleG
2024-10-31 11:03:17 +08:00
parent 0281d28a72
commit 59cd9347c2

View File

@@ -1,6 +1,6 @@
__requestQueue = {} local __requestQueue = {}
_requestCount = 0 local _requestCount = 0
_Request = local _Request =
{ {
command = "", command = "",
currentTime = 0, currentTime = 0,
@@ -11,7 +11,7 @@ local os = love.system.getOS()
local __defaultErrorFunction = nil local __defaultErrorFunction = nil
local isDebugActive = false local isDebugActive = false
JS = {} local JS = {}
function JS.callJS(funcToCall) function JS.callJS(funcToCall)
if(os == "Web") then if(os == "Web") then
@@ -156,3 +156,5 @@ JS.callJS(JS.stringFunc(
__getWebDB("%s"); __getWebDB("%s");
]] ]]
, "__LuaJSDB")) , "__LuaJSDB"))
return JS