[Webeye] Fix JS loader encoding for domUtils.js (#3991)

Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
kerry
2025-11-18 08:57:55 +09:00
committed by GitHub
parent d182dc5e47
commit 1cfa457736

View File

@@ -25,7 +25,7 @@ def load_js_script() -> str:
try:
# TODO: Implement TS of domUtils.js and use the complied JS file instead of the raw JS file.
# This will allow our code to be type safe.
with open(path) as f:
with open(path, encoding="utf-8") as f:
return f.read()
except FileNotFoundError as e:
LOG.exception("Failed to load the JS script", path=path)