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:
parent
0850e60868
commit
f26b0c9f00
9 changed files with 499 additions and 36 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue