summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-26 17:10:47 +0300
committerAndrew Dolgov <[email protected]>2017-02-26 17:10:47 +0300
commit50e82ec2c306469e3d4237f84f2e0cfb74526d77 (patch)
tree43709e20c7694fab928c20d8df980764632dd990 /js
parent2b834146b03f24bef8f075af7321bf646a9090b1 (diff)
fix trying to download books manually via old rewrite URLs
Diffstat (limited to 'js')
-rw-r--r--js/index.js2
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');