Closed andrewdbate closed 1 year ago
Thank you, I confirm I was able to reproduce the issue. It's due to the fact that some code in nwSearchFnt.js
from the page overrides String#startsWith
with a buggy implementation. To circumvent the issue, I now use String#match
where it was throwing an error and it seems to be OK. Note that this bug does not happen in extensions because scripts run in a separate context where APIs can't be overridden by the page.
I installed SingleFile from the Docker image in the usual way:
I can then save a webpage as usual and everything works as expected:
However, when I try to save the webpage
https://cdn.docbook.org/release/xsl-nons/1.79.2/webhelp/docs/ch03s02.html
I get a stacktrace:I do not get an error when I try to save the same page using the SingleFile extension for Firefox. Thanks!