1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00
Commit graph

4 commits

Author SHA1 Message Date
Christiaan Baartse
0b0f2e1b2d Bugfix calling coverUrl throws error on book without cover
When calling coverUrl on a book that has no cover a error is thrown

> TypeError: Cannot read property 'substr' of undefined

This is because Archive.getBlob is called with this.cover which is
undefined.
2020-05-22 11:17:07 +02:00
Christiaan Baartse
2732e172cd Fix opening an ArrayBuffer without options
Opening an archived Epub in an ArrayBuffer without passing in options will
never resolve its `book.opened` Promise.
2020-05-21 06:25:30 +02:00
Christiaan Baartse
2f63b16276 Fix broken coverUrl for archived Epubs
When calling coverUrl for an archived epub the resolved promise contains
undefined and not a string.

Also the documentation everywhere is lying about coverUrl() returning a
string whereas it actually returns a Promise that resolves to a string.
2020-05-19 06:48:19 +02:00
Fred Chasen
47787678f7 Added core Url and Path, split up book.open, added Container and Packaging 2016-11-08 02:06:10 +01:00