From 02c03e08c88ace69d67ed965825a8c81e67ec7de Mon Sep 17 00:00:00 2001 From: "Bobby Abellana (aider)" Date: Tue, 18 Feb 2025 09:47:45 -0800 Subject: [PATCH] refactor: Replace async clipboard method with more reliable execCommand approach --- src/streamlit_app.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/streamlit_app.py b/src/streamlit_app.py index 3c18396..003219b 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -531,18 +531,20 @@ if st.session_state.error_log: js_code = f""" +
""" st.components.v1.html(js_code, height=0) st.success("✅ Error log copied to clipboard!")