1
0
Fork 0
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:
Fred Chasen 2018-10-29 18:29:04 -07:00
parent 5bad36d709
commit 231496a047
11 changed files with 76 additions and 49 deletions

View file

@ -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){