Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
ParticleG committed Nov 2, 2024
1 parent 17a8181 commit 725e8b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Zframework/clipboard_thread.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ while true do
JS.stringFunc[[
window.navigator.clipboard
.readText()
.then((text) => _$_(text));
.then((text) => _$_(text))
.catch();
]],
function(data)
while getCHN:getCount()>0 do getCHN:pop() end
print('Clipboard:', data)
getCHN:push(data)
end,
function(id,error) print(id, error) end,
Expand Down

0 comments on commit 725e8b3

Please sign in to comment.