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:
parent
cf603fcca8
commit
105a3a36d6
7 changed files with 150 additions and 64 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue