This commit is contained in:
ParticleG
2024-11-02 18:10:35 +08:00
parent 725e8b35bd
commit eb7e20d157

View File

@@ -27,10 +27,10 @@ while true do
window.navigator.clipboard window.navigator.clipboard
.readText() .readText()
.then((text) => _$_(text)) .then((text) => _$_(text))
.catch(); .catch((e)=>{});
]], ]],
function(data) function(data)
while getCHN:getCount()>0 do getCHN:pop() end while getCHN:getCount()>0 do print('getCHN count:', getCHN:getCount()); getCHN:pop() end
print('Clipboard:', data) print('Clipboard:', data)
getCHN:push(data) getCHN:push(data)
end, end,
@@ -39,5 +39,6 @@ while true do
'getClipboardText' 'getClipboardText'
) )
end end
JS.retrieveData(.0626)
love.timer.sleep(.0626) love.timer.sleep(.0626)
end end