From 50e82ec2c306469e3d4237f84f2e0cfb74526d77 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 26 Feb 2017 17:10:47 +0300 Subject: fix trying to download books manually via old rewrite URLs --- js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') 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'); -- cgit v1.2.3