mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
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.
This commit is contained in:
parent
0b0f2e1b2d
commit
d690dd9d68
4 changed files with 15 additions and 14 deletions
|
@ -134,9 +134,9 @@ Set headers request should use
|
|||
|
||||
### coverUrl
|
||||
|
||||
Get the cover url
|
||||
Get the cover url if there is a cover
|
||||
|
||||
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)>** Promise resolves with url string
|
||||
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[?string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)>** Promise resolves with maybe a url string
|
||||
|
||||
### getRange
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue