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