diff options
author | Andrew Dolgov <[email protected]> | 2017-02-26 17:10:47 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-02-26 17:10:47 +0300 |
commit | 50e82ec2c306469e3d4237f84f2e0cfb74526d77 (patch) | |
tree | 43709e20c7694fab928c20d8df980764632dd990 /js | |
parent | 2b834146b03f24bef8f075af7321bf646a9090b1 (diff) |
fix trying to download books manually via old rewrite URLs
Diffstat (limited to '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'); |