mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Merge pull request #5447 from apolinario/patch-1
Fix WebUI not working inside of iframes
This commit is contained in:
commit
7cea280a8f
@ -1,5 +1,6 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user