[Webeye] Fix JS loader encoding for domUtils.js (#3991)
Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@ def load_js_script() -> str:
|
|||||||
try:
|
try:
|
||||||
# TODO: Implement TS of domUtils.js and use the complied JS file instead of the raw JS file.
|
# 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.
|
# 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()
|
return f.read()
|
||||||
except FileNotFoundError as e:
|
except FileNotFoundError as e:
|
||||||
LOG.exception("Failed to load the JS script", path=path)
|
LOG.exception("Failed to load the JS script", path=path)
|
||||||
|
|||||||
Reference in New Issue
Block a user