This commit is contained in:
ParticleG
2024-11-02 17:55:32 +08:00
parent 17a8181822
commit 725e8b35bd

View File

@@ -26,10 +26,12 @@ while true do
JS.stringFunc[[ JS.stringFunc[[
window.navigator.clipboard window.navigator.clipboard
.readText() .readText()
.then((text) => _$_(text)); .then((text) => _$_(text))
.catch();
]], ]],
function(data) function(data)
while getCHN:getCount()>0 do getCHN:pop() end while getCHN:getCount()>0 do getCHN:pop() end
print('Clipboard:', data)
getCHN:push(data) getCHN:push(data)
end, end,
function(id,error) print(id, error) end, function(id,error) print(id, error) end,