From 725e8b35bdf4439c827c2d39b817617be453d589 Mon Sep 17 00:00:00 2001 From: ParticleG Date: Sat, 2 Nov 2024 17:55:32 +0800 Subject: [PATCH] - --- Zframework/clipboard_thread.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Zframework/clipboard_thread.lua b/Zframework/clipboard_thread.lua index 357d4d42..4e191e07 100644 --- a/Zframework/clipboard_thread.lua +++ b/Zframework/clipboard_thread.lua @@ -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,