mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
fixes for react
This commit is contained in:
parent
48216cc7ec
commit
8ec9a5fbeb
14 changed files with 2372 additions and 150 deletions
|
@ -88,7 +88,12 @@ Section.prototype.render = function(_request){
|
|||
|
||||
this.load(_request).
|
||||
then(function(contents){
|
||||
var serializer = new XMLSerializer();
|
||||
var serializer;
|
||||
|
||||
if (typeof XMLSerializer === "undefined") {
|
||||
XMLSerializer = require('xmldom').XMLSerializer;
|
||||
}
|
||||
serializer = new XMLSerializer();
|
||||
this.output = serializer.serializeToString(contents);
|
||||
return this.output;
|
||||
}.bind(this)).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue