diff options
Diffstat (limited to 'read.html')
-rw-r--r-- | read.html | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -322,14 +322,15 @@ EPUBJS.Hooks.register("beforeChapterDisplay").swipeDetection = function(callback, renderer) { - EPUBJS.core.addScripts(["/books/lib/bootstrap/v3/js/jquery.js", - "/books/lib/jquery.mobile-1.4.5.js", - "/books/js/swipes.js" ], null, renderer.doc.head); + var baseUrl = window.location.href.match(/^.*\//)[0]; + + EPUBJS.core.addScripts([baseUrl + "lib/bootstrap/v3/js/jquery.js", + baseUrl + "lib/jquery.mobile-1.4.5.js", + baseUrl + "js/swipes.js" ], null, renderer.doc.head); if (callback) callback(); } - var book = ePub({ restore: false, }); |