Add EPUB version
This commit is contained in:
parent
cac5651601
commit
39d335679c
2
epub.js
2
epub.js
@ -248,6 +248,8 @@ EPub.prototype.handleRootFile = function () {
|
|||||||
**/
|
**/
|
||||||
EPub.prototype.parseRootFile = function (rootfile) {
|
EPub.prototype.parseRootFile = function (rootfile) {
|
||||||
|
|
||||||
|
this.version = rootfile['@'].version || '2.0';
|
||||||
|
|
||||||
var i, len, keys, keyparts, key;
|
var i, len, keys, keyparts, key;
|
||||||
keys = Object.keys(rootfile);
|
keys = Object.keys(rootfile);
|
||||||
for (i = 0, len = keys.length; i < len; i++) {
|
for (i = 0, len = keys.length; i < len; i++) {
|
||||||
|
Reference in New Issue
Block a user