mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 05:12:35 +00:00
No code repeat
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
function gradioApp(){
|
function gradioApp() {
|
||||||
return !!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document;
|
const gradioShadowRoot = document.getElementsByTagName('gradio-app')[0].shadowRoot
|
||||||
|
return !!gradioShadowRoot ? gradioShadowRoot : document;
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_uiCurrentTab() {
|
function get_uiCurrentTab() {
|
||||||
|
Reference in New Issue
Block a user