- fix error
This commit is contained in:
@@ -200,7 +200,7 @@ if JS then
|
|||||||
end
|
end
|
||||||
|
|
||||||
love.system.getClipboardText = function ()
|
love.system.getClipboardText = function ()
|
||||||
local res
|
local res=''
|
||||||
JS.newPromiseRequest(
|
JS.newPromiseRequest(
|
||||||
JS.stringFunc(
|
JS.stringFunc(
|
||||||
[[
|
[[
|
||||||
@@ -214,7 +214,7 @@ if JS then
|
|||||||
]]
|
]]
|
||||||
),
|
),
|
||||||
function(data) res=data end,
|
function(data) res=data end,
|
||||||
function(id, error) print(id, error) res="" end
|
function(id, error) print(id, error) end
|
||||||
)
|
)
|
||||||
return res
|
return res
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user