mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Book.open(url) should use the argument value if given.
This commit is contained in:
parent
20f0f4e97d
commit
e6cb3277b4
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ Book.prototype.open = function(_url, options){
|
||||||
if (window && window.location && uri) {
|
if (window && window.location && uri) {
|
||||||
absoluteUri = uri.absoluteTo(window.location.href);
|
absoluteUri = uri.absoluteTo(window.location.href);
|
||||||
this.url = absoluteUri.toString();
|
this.url = absoluteUri.toString();
|
||||||
} if (window && window.location) {
|
} else if (window && window.location) {
|
||||||
this.url = window.location.href;
|
this.url = window.location.href;
|
||||||
} else {
|
} else {
|
||||||
this.url = _url;
|
this.url = _url;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue