-
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user