mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-29 05:13:08 -08:00
initial gradio 3.22 support
This commit is contained in:
parent
6a04a7f20f
commit
8ea8e712c4
15 changed files with 299 additions and 635 deletions
|
|
@ -1,7 +1,9 @@
|
|||
function gradioApp() {
|
||||
const elems = document.getElementsByTagName('gradio-app')
|
||||
const gradioShadowRoot = elems.length == 0 ? null : elems[0].shadowRoot
|
||||
return !!gradioShadowRoot ? gradioShadowRoot : document;
|
||||
const elem = elems.length == 0 ? document : elems[0]
|
||||
|
||||
elem.getElementById = function(id){ return document.getElementById(id) }
|
||||
return elem.shadowRoot ? elem.shadowRoot : elem
|
||||
}
|
||||
|
||||
function get_uiCurrentTab() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue