Update app.py
Browse files
app.py
CHANGED
|
@@ -121,8 +121,8 @@ def main():
|
|
| 121 |
""", unsafe_allow_html=True)
|
| 122 |
|
| 123 |
# Iframe secure preview for websites
|
| 124 |
-
if "safe_view" in st.
|
| 125 |
-
url = st.
|
| 126 |
if url:
|
| 127 |
st.markdown(f"<div class='iframe-container'><iframe src='{url}'></iframe></div>", unsafe_allow_html=True)
|
| 128 |
|
|
|
|
| 121 |
""", unsafe_allow_html=True)
|
| 122 |
|
| 123 |
# Iframe secure preview for websites
|
| 124 |
+
if "safe_view" in st.query_params:
|
| 125 |
+
url = st.query_params.get("url", [None])[0]
|
| 126 |
if url:
|
| 127 |
st.markdown(f"<div class='iframe-container'><iframe src='{url}'></iframe></div>", unsafe_allow_html=True)
|
| 128 |
|