Merge pull request #5447 from apolinario/patch-1
Fix WebUI not working inside of iframes
This commit is contained in:
commit
7cea280a8f
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
function gradioApp() {
|
||||
return document.getElementsByTagName('gradio-app')[0].shadowRoot;
|
||||
const gradioShadowRoot = document.getElementsByTagName('gradio-app')[0].shadowRoot
|
||||
return !!gradioShadowRoot ? gradioShadowRoot : document;
|
||||
}
|
||||
|
||||
function get_uiCurrentTab() {
|
||||
|
|
Loading…
Reference in a new issue