1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Add parsing of json manifest

This commit is contained in:
Fred Chasen 2017-03-22 11:17:13 -04:00
parent 0850e60868
commit f26b0c9f00
9 changed files with 499 additions and 36 deletions

View file

@ -102,7 +102,7 @@ class IframeView {
// Firefox has trouble with baseURI and srcdoc
// TODO: Disable for now in firefox
if(!("srcdoc" in this.iframe)) {
if("srcdoc" in this.iframe) {
this.supportsSrcdoc = true;
} else {
this.supportsSrcdoc = false;
@ -369,6 +369,10 @@ class IframeView {
this.onResize(this, size);
if (this.contents) {
this.settings.layout.format(this.contents);
}
this.emit("resized", size);
}