diff --git a/Zframework/init.lua b/Zframework/init.lua index ab87ca41..f7814d8e 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -188,7 +188,7 @@ if JS then JS.callJS(JS.stringFunc( [[ window.navigator.clipboard - .writeText(%s) + .writeText('%s') .then(() => console.log('Copied to clipboard')) .catch((e) => console.warn(e)); ]], @@ -202,7 +202,7 @@ if JS then [[ window.navigator.clipboard .readText() - .then(async (text) => _$_(text)) + .then((text) => {console.log(text); _$_(text);}) .catch((e) => { console.warn(e); _$_('');