From c33614a9cc1147a5e9508c68ecafb9c707232e0a Mon Sep 17 00:00:00 2001 From: ParticleG Date: Thu, 31 Oct 2024 11:45:24 +0800 Subject: [PATCH] - Add JS.retrieveData to main update loop --- Zframework/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 39ef5cb2..ab87ca41 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -188,7 +188,7 @@ if JS then JS.callJS(JS.stringFunc( [[ window.navigator.clipboard - .writeText('') + .writeText(%s) .then(() => console.log('Copied to clipboard')) .catch((e) => console.warn(e)); ]], @@ -735,6 +735,10 @@ function love.run() end return function() + if JS and JS.retrieveData(1) then + return + end + local _ local time=timer()