Merge branch 'AUTOMATIC1111:master' into master

This commit is contained in:
kurilee 2023-03-25 22:47:05 +08:00 committed by GitHub
commit 993c11549c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import time
import git
from modules import paths, shared
from modules.paths_internal import extensions_dir, extensions_builtin_dir
extensions = []

View File

@ -2,7 +2,7 @@ function gradioApp() {
const elems = document.getElementsByTagName('gradio-app')
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
}