Commit 37139d8a authored by apolinario's avatar apolinario

No code repeat

parent 8eb638cd
function gradioApp(){ function gradioApp() {
return !!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document; const gradioShadowRoot = document.getElementsByTagName('gradio-app')[0].shadowRoot
return !!gradioShadowRoot ? gradioShadowRoot : 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