diff options
Diffstat (limited to 'js/index.js')
-rw-r--r-- | js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/index.js b/js/index.js index 95615a2..5c138c2 100644 --- a/js/index.js +++ b/js/index.js @@ -42,7 +42,7 @@ function offline_cache(bookId, callback) { console.log(cacheId + ' got data'); - fetch('getbook/' + data.epub_id + ".epub", {credentials: 'same-origin'}).then(function(resp) { + fetch('backend.php?op=download&id=' + data.epub_id, {credentials: 'same-origin'}).then(function(resp) { if (resp.status == 200) { console.log(cacheId + ' got book'); |