|
|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
function gradioApp(){
|
|
|
|
|
return document.getElementsByTagName('gradio-app')[0].shadowRoot;
|
|
|
|
|
function gradioApp() {
|
|
|
|
|
const gradioShadowRoot = document.getElementsByTagName('gradio-app')[0].shadowRoot
|
|
|
|
|
return !!gradioShadowRoot ? gradioShadowRoot : document;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function get_uiCurrentTab() {
|
|
|
|
|
@ -82,4 +83,4 @@ function uiElementIsVisible(el) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return isVisible;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|