mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Parse cover entry in manifest
This commit is contained in:
parent
de1861ba86
commit
ef8e7104c7
2 changed files with 3 additions and 1 deletions
|
@ -40,6 +40,8 @@ class Manifest extends Publication {
|
||||||
case "locations":
|
case "locations":
|
||||||
this.locations = value;
|
this.locations = value;
|
||||||
break;
|
break;
|
||||||
|
case "cover":
|
||||||
|
this.coverUrl = value;
|
||||||
default:
|
default:
|
||||||
this.setMetadata(key, value);
|
this.setMetadata(key, value);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -552,7 +552,7 @@ class Publication {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates the Publication Key using the identifer in the data or other string provided
|
* Generates the Publication Key using the identifier in the data or other string provided
|
||||||
* @param {string} [identifier] to use instead of metadata identifier
|
* @param {string} [identifier] to use instead of metadata identifier
|
||||||
* @return {string} key
|
* @return {string} key
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue