You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have build an web app with Readium before, it works perfectly. Now I am trying to move the app to Electron, almost using the same code.
But something wired happened. I found that, in the Electron App, if the reader is in scroll-document mode, it cannot jump to the right place using openContentUrl when the url has a hashtag in it, such as "Text/chapter4.html#section_1". However, if the reader is in "auto" mode (AKA, Paged), openContentUrl can jump to the right place.
Sum it up, the same code, working all good on Web app. Copying the code into an Electron App, openContentUrl() can not work properly when the reader is in scroll-doc mode and the url contains # in it.
I have read the code of openContentUrl, but I can not understand the meaning of the second and third parameters. Now, my code is like this, I copy this code from Readium web reader, it seems to work very well for Web App.
Please help, thank you very much.
The text was updated successfully, but these errors were encountered:
There is an old (out of date) GitHub branch which "ports" the ChromeApp to an Electron app, but this code hasn't been tested for a long time.
It was just an experiment (also basic support for Apache Cordova in the same branch), but EPUB rendering / navigation used to work. https://github.com/readium/readium-js-viewer/tree/feature/electron
Hi,
I have build an web app with Readium before, it works perfectly. Now I am trying to move the app to Electron, almost using the same code.
But something wired happened. I found that, in the Electron App, if the reader is in scroll-document mode, it cannot jump to the right place using openContentUrl when the url has a hashtag in it, such as "Text/chapter4.html#section_1". However, if the reader is in "auto" mode (AKA, Paged), openContentUrl can jump to the right place.
Sum it up, the same code, working all good on Web app. Copying the code into an Electron App, openContentUrl() can not work properly when the reader is in scroll-doc mode and the url contains # in it.
I have read the code of openContentUrl, but I can not understand the meaning of the second and third parameters. Now, my code is like this, I copy this code from Readium web reader, it seems to work very well for Web App.
Please help, thank you very much.
The text was updated successfully, but these errors were encountered: