test iframe
authorClaromes <claromes@hey.com>
Mon, 14 Aug 2023 22:29:43 +0000 (19:29 -0300)
committerClaromes <claromes@hey.com>
Mon, 14 Aug 2023 22:29:43 +0000 (19:29 -0300)
app.py

diff --git a/app.py b/app.py
index 7be3ca6719050df24aca1f6220869fa3a122495e..66c1d2f12c208d3c20acc73bb5eaef47fa7ba165 100644 (file)
--- a/app.py
+++ b/app.py
@@ -279,7 +279,7 @@ if query or handle:
                     st.error('Tweet has been deleted.')
 
                     # components.iframe(link, height=500, width=700)
-                    st.markdown('<iframe srcdoc="Loading..." onload="this.removeAttribute(\'srcdoc\')" src="{}" loading="lazy" height=500 width="100%"></iframe>'.format(link), unsafe_allow_html=True)
+                    st.markdown('<iframe src="{}" loading="lazy" height=500 width="100%"></iframe>'.format(link), unsafe_allow_html=True)
 
                     st.divider()