pgaskin / ePubViewer

ePub viewer with dictionary, themes, search, offline support, and more
http://pgaskin.net/ePubViewer
MIT License
345 stars 75 forks source link

[Feature Request] Load book from URL #20

Closed kosirm closed 3 years ago

kosirm commented 3 years ago

Thank you so much for this amazing free project!

Maybe this is already possible, but I don't know how to do it. Anyway, I would like to load a book from url (some public web address, my dropbox, etc.). I'm not sure how to implement this. Maybe CORS would be a problem? Any hint appreciated. Edit: sorry for stupid question, it looks really simple... Edit2: Ups, I just found... "If you are planning to make changes to your own copy of ePubViewer, it would be nice if you could remove the Sentry error reporting (all the Raven stuff). Please also remove Google Analytics. Thanks!"

Thank you for all the nice comments in the code!

Edit 3: I was really stupid about this. Epub.js has integrated reader from URL, so your reader can be used also like this, and it works perfectly!