1
0
Fork 0
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:
Arvydas Sidorenko 2016-10-09 11:19:34 +02:00
parent 20f0f4e97d
commit e6cb3277b4

View file

@ -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;