mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
resource process method, types fixes
This commit is contained in:
parent
5bad36d709
commit
231496a047
11 changed files with 76 additions and 49 deletions
|
@ -22,6 +22,15 @@ class Resources {
|
|||
resolver: (options && options.resolver),
|
||||
request: (options && options.request)
|
||||
};
|
||||
|
||||
this.process(manifest);
|
||||
}
|
||||
|
||||
/**
|
||||
* Process resources
|
||||
* @param {Manifest} manifest
|
||||
*/
|
||||
process(manifest){
|
||||
this.manifest = manifest;
|
||||
this.resources = Object.keys(manifest).
|
||||
map(function (key){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue