Quote:
Originally Posted by KevinH
I think there is a QtWebEngineURl Scheme setting that enables the fetch api. If the fetch is foreign though you would have to enable the remote access in Sigil Preferences too.
Is that js opening any Windows, as I think that is disabled as well?
What scheme does the url passed to fetch() use? Is it a private scheme or http or https?
Can you please post a very simple epub test case with it and I will see if I can get things to work on Sigil too by changing the QWebEngineProfile, QWebEngineSettings, and/or our Sigil url scheme handler settings settings that Sigil uses.
|
Hi Kevin;
I attach an epub with the javascript files of Hyphenopoly and a .wasm (in this case, is the pattern for spanish but for a test it can be used without issues). If you open the attached epub with the Sigil's plugins Readium and Epub JSReader you'll see that the epub is hyphened.
With the inspector you can watch that Sigil can't find/load the pattern (.wasm) file in line 179 of Hyphenopoly_Loader.js and also can't find/load Hyphenopoly.js in line 232. The loader first test if there is native support for hyphenation; if is supported, it does nothing; otherwise, it loads the language pattern and the hyphenation engine (Hyphenopoly.js).