mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-11-17 03:16:59 +00:00
Specify UTF-8 encoding for xpath_element_js (#3650)
This commit is contained in:
1 parent
3276a9347a
commit
1c2c22b8df
1 file changed
+1
-1
@@ -439,7 +439,7 @@ class browsersteps_live_ui(steppable_browser_interface):
|
||||
logger.warning("Attempted to get current state after cleanup")
|
||||
return (None, None)
|
||||
|
||||
xpath_element_js = importlib.resources.files("changedetectionio.content_fetchers.res").joinpath('xpath_element_scraper.js').read_text()
|
||||
xpath_element_js = importlib.resources.files("changedetectionio.content_fetchers.res").joinpath('xpath_element_scraper.js').read_text(encoding="utf-8")
|
||||
|
||||
now = time.time()
|
||||
await self.page.wait_for_timeout(1 * 1000)
|
||||
|
||||
Reference in new issue
Block a user