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