1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00
Commit graph

6 commits

Author SHA1 Message Date
Fred Chasen
cb4facb6c2
WIP: Update to Webpack 4 and Babel 7 (#835)
* Update to Webpack 4 and Babel 7

* Update karma tests

* Update browserlist, fix tests, remove all requires

* Update karma browserlist query

* Update webpack externals

* remove gulp and serve

* Fix webpack for karma

* Fix test externals
2020-06-04 21:38:39 -07:00
Christiaan Baartse
d690dd9d68 Change Book.coverUrl to return null when there is no cover
CoverUrl now returns an undefined when there is no cover. However not
having a cover is expected behavior for an epub without a cover.
2020-05-22 11:34:03 +02:00
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