aboutsummaryrefslogtreecommitdiffstats
path: root/script.js
diff options
context:
space:
mode:
authorkurilee <4319423+kurilee@users.noreply.github.com>2023-03-25 14:47:05 +0000
committerGitHub <noreply@github.com>2023-03-25 14:47:05 +0000
commit993c11549cf7c3ffe7506884b3ef83f8b9dbfbb1 (patch)
treea718ff0897c9f0125fc0e415cab4d1b02d9c2533 /script.js
parentb2fc7dba2edead2b2e880ea90bd6b5494115b330 (diff)
parent91ae48fd7e20c60d6374f340cac0939f56d87048 (diff)
downloadstable-diffusion-webui-gfx803-993c11549cf7c3ffe7506884b3ef83f8b9dbfbb1.tar.gz
stable-diffusion-webui-gfx803-993c11549cf7c3ffe7506884b3ef83f8b9dbfbb1.tar.bz2
stable-diffusion-webui-gfx803-993c11549cf7c3ffe7506884b3ef83f8b9dbfbb1.zip
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'script.js')
-rw-r--r--script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/script.js b/script.js
index 978b948f..1b9a443f 100644
--- a/script.js
+++ b/script.js
@@ -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
}