Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: readium is not defined #82

Open
charlestyra89 opened this issue May 12, 2023 · 3 comments
Open

Uncaught ReferenceError: readium is not defined #82

charlestyra89 opened this issue May 12, 2023 · 3 comments

Comments

@charlestyra89
Copy link

In the demo app, if I close and reopen a downloaded book (or other downloaded book) six times, the app crashes and shows a screen indicating err: unsafe port for port 4045. In the logs I see "Uncaught ReferenceError: readium is not defined" as well as "1.ui identical 28 lines"
Thanks for any help you can provide!

@vitaliynester
Copy link

Hello. When you open the book, the server starts and each time on a new port (the first time - 4040, the second time - 4041, etc.). You can try commenting out this line

@jmgeffroy
Copy link
Contributor

jmgeffroy commented May 23, 2023

Hi @charlestyra89 and @vitaliynester, I haven't seen your posts. On Android, you can avoid starting an HTTP server by replacing true by false in EpubController, here.
If you are working with a fork, it's easy for you to give it a try.
But if you are using the "Reader Widget", there is currently no matching option. This would be a nice addition. I'll implement that quickly.

EDIT: I tested, and in the current version, setting false doesn't work. I need to investigate further since it definitely worked. It has been broken at some point.

@jmgeffroy
Copy link
Contributor

Created #89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants