1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

bump version to 0.3.25

This commit is contained in:
Fred Chasen 2017-04-12 17:08:47 -04:00
parent 4dc35bfc72
commit bf9cd9f279
3 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "epubjs", "name": "epubjs",
"version": "0.3.24", "version": "0.3.25",
"description": "Parse and Render Epubs", "description": "Parse and Render Epubs",
"main": "lib/index.js", "main": "lib/index.js",
"jsnext:main": "src/index.js", "jsnext:main": "src/index.js",

View file

@ -32,8 +32,7 @@ class DefaultViewManager {
axis: this.settings.axis, axis: this.settings.axis,
layout: this.layout, layout: this.layout,
width: 0, width: 0,
height: 0, height: 0
globalOptions: extend({}, options.settings, {disableSrcdoc: options.settings.disableSrcdoc || false})
}; };
} }

View file

@ -102,7 +102,7 @@ class IframeView {
// Firefox has trouble with baseURI and srcdoc // Firefox has trouble with baseURI and srcdoc
// TODO: Disable for now in firefox // TODO: Disable for now in firefox
if("srcdoc" in this.iframe && !this.settings.globalOptions.disableSrcdoc) { if("srcdoc" in this.iframe) {
this.supportsSrcdoc = true; this.supportsSrcdoc = true;
} else { } else {
this.supportsSrcdoc = false; this.supportsSrcdoc = false;