mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
Use shadowRoot if inside of an iframe and don't use it if outside
This makes sure it will work everywhere
This commit is contained in:
parent
2eb5f103ab
commit
1075819b16
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
function gradioApp(){
|
||||
return document
|
||||
return !!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document
|
||||
}
|
||||
|
||||
function get_uiCurrentTab() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue