Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.

Please help, openContentUrl() dosen't work well in Electron app when the url contains #. #442

@hz0324

Description

@hz0324

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.

qq 20180313164435

Please help, thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions