From a8621333af6cd503759cc76a283158158adeff84 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Mon, 8 Jul 2024 15:50:12 +0000 Subject: [PATCH] js impl bug fix --- themes/common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/common.py b/themes/common.py index 81330ea9..efae1a75 100644 --- a/themes/common.py +++ b/themes/common.py @@ -42,10 +42,10 @@ def get_common_html_javascript_code(): for common_js_path in common_js_path_list: if '.min.' not in common_js_path: minimized_js_path = minimize_js(common_js_path) - for jsf in [ - f"file={minimized_js_path}", - ]: - js += f"""\n""" + else: + minimized_js_path = common_js_path + jsf = f"file={minimized_js_path}" + js += f"""\n""" if not ADD_WAIFU: js += """\n"""