Merge branch 'AUTOMATIC1111:master' into master
This commit is contained in:
commit
993c11549c
|
@ -6,6 +6,7 @@ import time
|
||||||
import git
|
import git
|
||||||
|
|
||||||
from modules import paths, shared
|
from modules import paths, shared
|
||||||
|
from modules.paths_internal import extensions_dir, extensions_builtin_dir
|
||||||
|
|
||||||
extensions = []
|
extensions = []
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ function gradioApp() {
|
||||||
const elems = document.getElementsByTagName('gradio-app')
|
const elems = document.getElementsByTagName('gradio-app')
|
||||||
const elem = elems.length == 0 ? document : elems[0]
|
const elem = elems.length == 0 ? document : elems[0]
|
||||||
|
|
||||||
elem.getElementById = function(id){ return document.getElementById(id) }
|
if (elem !== document) elem.getElementById = function(id){ return document.getElementById(id) }
|
||||||
return elem.shadowRoot ? elem.shadowRoot : elem
|
return elem.shadowRoot ? elem.shadowRoot : elem
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue