From 42b7902922408f4b139aaed20626d667d6821625 Mon Sep 17 00:00:00 2001 From: DepFA <35278260+dfaker@users.noreply.github.com> Date: Fri, 23 Sep 2022 03:05:42 +0100 Subject: sort JavaScript includes to assure script sequence Who knows what filesystem they're on --- modules/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/ui.py b/modules/ui.py index 036f2ed3..cbdbfe74 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1019,7 +1019,7 @@ with open(os.path.join(script_path, "script.js"), "r", encoding="utf8") as jsfil javascript = f'' 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" -- cgit v1.2.1