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
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
function gradioApp(){ function gradioApp(){
return document.getElementsByTagName('gradio-app')[0].shadowRoot; return document
} }
function get_uiCurrentTab() { function get_uiCurrentTab() {