Unverified Commit 7cea280a authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #5447 from apolinario/patch-1

Fix WebUI not working inside of iframes
parents 94a35ca9 37139d8a
function gradioApp(){
return document.getElementsByTagName('gradio-app')[0].shadowRoot;
function gradioApp() {
const gradioShadowRoot = document.getElementsByTagName('gradio-app')[0].shadowRoot
return !!gradioShadowRoot ? gradioShadowRoot : document;
}
function get_uiCurrentTab() {
......@@ -82,4 +83,4 @@ function uiElementIsVisible(el) {
}
}
return isVisible;
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment