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

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

This makes sure it will work everywhere
parent 2eb5f103
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
function gradioApp(){
    return document
    return !!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document
}

function get_uiCurrentTab() {