Support for EPUB 3 spine-level SVG components
This commit is contained in:
parent
dc8c81bdca
commit
5fa974e614
2
epub.js
2
epub.js
@ -638,7 +638,7 @@ EPub.prototype.getChapter = function (id, callback) {
|
|||||||
EPub.prototype.getChapterRaw = function (id, callback) {
|
EPub.prototype.getChapterRaw = function (id, callback) {
|
||||||
if (this.manifest[id]) {
|
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"));
|
return callback(new Error("Invalid mime type for chapter"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user