Fix WebUI not working inside of iframes
This commit is contained in:
parent
44c46f0ed3
commit
2eb5f103ab
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
function gradioApp(){
|
||||
return document.getElementsByTagName('gradio-app')[0].shadowRoot;
|
||||
return document
|
||||
}
|
||||
|
||||
function get_uiCurrentTab() {
|
||||
|
@ -82,4 +82,4 @@ function uiElementIsVisible(el) {
|
|||
}
|
||||
}
|
||||
return isVisible;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue