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:
parent
c29e5f84ee
commit
1a89a9c3ff
4 changed files with 5 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue