Fix WebUI not working inside of iframes

This commit is contained in:
apolinario 2022-12-05 16:30:15 +01:00 committed by GitHub
parent 44c46f0ed3
commit 2eb5f103ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}