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

small fixes

This commit is contained in:
Fred Chasen 2014-10-06 17:44:04 -04:00
parent cf603fcca8
commit 105a3a36d6
7 changed files with 150 additions and 64 deletions

View file

@ -66,7 +66,7 @@ EPUBJS.Book.prototype.open = function(_url){
this.containerUrl = '';
if(uri.origin) {
this.url = uri.origin + "/" + uri.directory;
this.url = uri.base;
} else if(window){
location = EPUBJS.core.uri(window.location.href);
this.url = EPUBJS.core.resolveUrl(location.base, uri.directory);