diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-24 06:39:46 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-24 06:39:46 +0000 |
commit | 876a96f0f9843382ebc8984db3de5d8af0e9ce4c (patch) | |
tree | 8771f3f3f9918166be53dbe5d5d87c6ad23b409b /modules/ui.py | |
parent | 999929bea4e66384e6cf8da1e2cf833d1fa41053 (diff) | |
download | stable-diffusion-webui-gfx803-876a96f0f9843382ebc8984db3de5d8af0e9ce4c.tar.gz stable-diffusion-webui-gfx803-876a96f0f9843382ebc8984db3de5d8af0e9ce4c.tar.bz2 stable-diffusion-webui-gfx803-876a96f0f9843382ebc8984db3de5d8af0e9ce4c.zip |
remove erroneous dir in the extension directory
remove loading .js files from scripts dir (they go into javascript)
load scripts after models, for scripts that depend on loaded models
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py index a73b9ff0..03528968 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1885,7 +1885,7 @@ def load_javascript(raw_response): javascript = f'<script>{jsfile.read()}</script>'
scripts_list = modules.scripts.list_scripts("javascript", ".js")
- scripts_list += modules.scripts.list_scripts("scripts", ".js")
+
for basedir, filename, path in scripts_list:
with open(path, "r", encoding="utf8") as jsfile:
javascript += f"\n<!-- {filename} --><script>{jsfile.read()}</script>"
|