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

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);
}
});