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

Merge pull request #557 from Yetangitu/master

Fix for 'Code bug' #526
This commit is contained in:
Fred Chasen 2017-02-20 20:24:38 -05:00 committed by GitHub
commit 41174b4645
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ EPUBJS.core.uri = function(url){
if(search != -1) { if(search != -1) {
uri.search = url.slice(search + 1); uri.search = url.slice(search + 1);
url = url.slice(0, search); url = url.slice(0, search);
href = url; href = uri.href;
} }
if(doubleSlash != -1) { if(doubleSlash != -1) {

View file

@ -13,7 +13,7 @@ EPUBJS.Render.Iframe = function() {
//-- Build up any html needed //-- Build up any html needed
EPUBJS.Render.Iframe.prototype.create = function(){ EPUBJS.Render.Iframe.prototype.create = function(){
this.element = document.createElement('div'); this.element = document.createElement('div');
this.element.id = "epubjs-view:" + this.id this.element.id = "epubjs-view:" + this.id;
this.isMobile = navigator.userAgent.match(/(iPad|iPhone|iPod|Mobile|Android)/g); this.isMobile = navigator.userAgent.match(/(iPad|iPhone|iPod|Mobile|Android)/g);
this.transform = EPUBJS.core.prefixed('transform'); this.transform = EPUBJS.core.prefixed('transform');