diff --git a/Zframework/init.lua b/Zframework/init.lua index 8cb750eb..068b0e13 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -202,13 +202,14 @@ if JS then [[ window.navigator.clipboard .readText() - .then((text) => {console.log(text); _$_(text);}) + .then((text) => {console.log('In Javascript: ' + text); _$_(text);}) .catch((e) => { console.warn(e); _$_(''); }); ]] - ), function(data) res=data end) + ), function(data) print("In callback: " .. data); res=data end) + print("In lua: " .. res) return res end end