1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-02 14:49:16 +02:00

Parse cover entry in manifest

This commit is contained in:
Fred Chasen 2023-05-19 16:43:52 -07:00
parent de1861ba86
commit ef8e7104c7
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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
*/ */