- fix error

This commit is contained in:
ParticleG
2024-10-31 21:00:50 +08:00
parent b19a83ac23
commit cec7914c8f

View File

@@ -200,7 +200,7 @@ if JS then
end
love.system.getClipboardText = function ()
local res
local res=''
JS.newPromiseRequest(
JS.stringFunc(
[[
@@ -214,7 +214,7 @@ if JS then
]]
),
function(data) res=data end,
function(id, error) print(id, error) res="" end
function(id, error) print(id, error) end
)
return res
end