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

fix for resolve url

This commit is contained in:
Fred Chasen 2014-08-21 18:09:55 -04:00
parent c29e5f84ee
commit 1a89a9c3ff
4 changed files with 5 additions and 7 deletions

5
dist/epub.js vendored
View file

@ -4453,7 +4453,7 @@ EPUBJS.core.request = function(url, type, withCredentials, headers) {
var xhrPrototype = XMLHttpRequest.prototype;
var header;
if (!('overrideMimeType' in xhrPrototype)) {
// IE10 might have response, but not overrideMimeType
Object.defineProperty(xhrPrototype, 'overrideMimeType', {
@ -4723,7 +4723,7 @@ EPUBJS.core.resolveUrl = function(base, path) {
directories.pop();
segments.unshift(part);
} else {
segments.push(part);
segments.unshift(part);
}
});
@ -6717,7 +6717,6 @@ EPUBJS.View.prototype.layout = function() {
console.error("View not shown");
}
// Apply Changes
this.resizing = true;
this.iframe.style.height = bounds.height + "px";

2
dist/epub.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -13,7 +13,7 @@ EPUBJS.core.request = function(url, type, withCredentials, headers) {
var xhrPrototype = XMLHttpRequest.prototype;
var header;
if (!('overrideMimeType' in xhrPrototype)) {
// IE10 might have response, but not overrideMimeType
Object.defineProperty(xhrPrototype, 'overrideMimeType', {
@ -283,7 +283,7 @@ EPUBJS.core.resolveUrl = function(base, path) {
directories.pop();
segments.unshift(part);
} else {
segments.push(part);
segments.unshift(part);
}
});

View file

@ -117,7 +117,6 @@ EPUBJS.View.prototype.layout = function() {
console.error("View not shown");
}
// Apply Changes
this.resizing = true;
this.iframe.style.height = bounds.height + "px";