Unverified Commit 1075819b authored by apolinario's avatar apolinario Committed by GitHub

Use shadowRoot if inside of an iframe and don't use it if outside

This makes sure it will work everywhere
parent 2eb5f103
function gradioApp(){ function gradioApp(){
return document return !!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document
} }
function get_uiCurrentTab() { function get_uiCurrentTab() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment