aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-03-11 12:18:05 +0000
committerGitHub <noreply@github.com>2023-03-11 12:18:05 +0000
commite15c4f31e3ec0d2d979832dede0f9b34f4631c7a (patch)
treefb25098663a5d47a6828018e05864dfccae1c753 /modules
parentf36ba9949a64fd35a81369e4ec7107b1b87ef7fb (diff)
parentb90cad7f3136bbe04efeee2a00e95d0cc6ce1a4a (diff)
downloadstable-diffusion-webui-gfx803-e15c4f31e3ec0d2d979832dede0f9b34f4631c7a.tar.gz
stable-diffusion-webui-gfx803-e15c4f31e3ec0d2d979832dede0f9b34f4631c7a.tar.bz2
stable-diffusion-webui-gfx803-e15c4f31e3ec0d2d979832dede0f9b34f4631c7a.zip
Merge pull request #8042 from fkunn1326/master
Add .mjs support for extensions
Diffstat (limited to 'modules')
-rw-r--r--modules/ui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 0516c643..2509ce2d 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -1754,6 +1754,9 @@ def reload_javascript():
for script in modules.scripts.list_scripts("javascript", ".js"):
head += f'<script type="text/javascript" src="file={script.path}?{os.path.getmtime(script.path)}"></script>\n'
+ for script in modules.scripts.list_scripts("javascript", ".mjs"):
+ head += f'<script type="module" src="file={script.path}?{os.path.getmtime(script.path)}"></script>\n'
+
head += f'<script type="text/javascript">{inline}</script>\n'
def template_response(*args, **kwargs):