diff --git a/epub.js b/epub.js index c43264a..fb4db00 100644 --- a/epub.js +++ b/epub.js @@ -638,7 +638,7 @@ EPub.prototype.getChapter = function (id, callback) { EPub.prototype.getChapterRaw = function (id, callback) { if (this.manifest[id]) { - if ((this.manifest[id]['media-type'] || "").toLowerCase().trim() != "application/xhtml+xml") { + if (!(this.manifest[id]['media-type'] == "application/xhtml+xml" || this.manifest[id]['media-type'] == "image/svg+xml")) { return callback(new Error("Invalid mime type for chapter")); }