mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 22:53:25 +03:00
sort JavaScript includes to assure script sequence
Who knows what filesystem they're on
This commit is contained in:
parent
19fc3e8279
commit
42b7902922
@ -1019,7 +1019,7 @@ with open(os.path.join(script_path, "script.js"), "r", encoding="utf8") as jsfil
|
||||
javascript = f'<script>{jsfile.read()}</script>'
|
||||
|
||||
jsdir = os.path.join(script_path, "javascript")
|
||||
for filename in os.listdir(jsdir):
|
||||
for filename in sorted(os.listdir(jsdir)):
|
||||
with open(os.path.join(jsdir, filename), "r", encoding="utf8") as jsfile:
|
||||
javascript += f"\n<script>{jsfile.read()}</script>"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user