- Add logs

This commit is contained in:
ParticleG
2024-10-31 12:18:27 +08:00
parent 8a663e29a6
commit 881d43c56d

View File

@@ -202,13 +202,14 @@ if JS then
[[ [[
window.navigator.clipboard window.navigator.clipboard
.readText() .readText()
.then((text) => {console.log(text); _$_(text);}) .then((text) => {console.log('In Javascript: ' + text); _$_(text);})
.catch((e) => { .catch((e) => {
console.warn(e); console.warn(e);
_$_(''); _$_('');
}); });
]] ]]
), function(data) res=data end) ), function(data) print("In callback: " .. data); res=data end)
print("In lua: " .. res)
return res return res
end end
end end