diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-23 12:09:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-23 12:09:26 +0000 |
commit | 74608300d1b07b0385359df68fee1bd086005b2d (patch) | |
tree | 7fd4c45f1a9a5460da94c40b03e5348e7bdda8bf /modules/ui.py | |
parent | 41265a026de699cc223ca5b76c69b4e8e74aa7c1 (diff) | |
parent | 669dbd9725b3a285503e093a75c0dfa332073d8a (diff) | |
download | stable-diffusion-webui-gfx803-74608300d1b07b0385359df68fee1bd086005b2d.tar.gz stable-diffusion-webui-gfx803-74608300d1b07b0385359df68fee1bd086005b2d.tar.bz2 stable-diffusion-webui-gfx803-74608300d1b07b0385359df68fee1bd086005b2d.zip |
Merge pull request #7093 from Shondoit/fix-dark-mode
Fix dark mode
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui.py b/modules/ui.py index 6b5dfd61..c56323f1 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1686,11 +1686,11 @@ def reload_javascript(): if cmd_opts.theme is not None:
inline += f"set_theme('{cmd_opts.theme}');"
- head += f'<script type="text/javascript">{inline}</script>\n'
-
for script in modules.scripts.list_scripts("javascript", ".js"):
head += f'<script type="text/javascript" src="file={script.path}"></script>\n'
+ head += f'<script type="text/javascript">{inline}</script>\n'
+
def template_response(*args, **kwargs):
res = shared.GradioTemplateResponseOriginal(*args, **kwargs)
res.body = res.body.replace(b'</head>', f'{head}</head>'.encode("utf8"))
|