From 881d43c56d6fc0b9cfd68e7bb4e2f7b535aecf12 Mon Sep 17 00:00:00 2001 From: ParticleG Date: Thu, 31 Oct 2024 12:18:27 +0800 Subject: [PATCH] - Add logs --- Zframework/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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