diff options
Diffstat (limited to 'js/common.js')
-rw-r--r-- | js/common.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/common.js b/js/common.js index 8367034..b42491d 100644 --- a/js/common.js +++ b/js/common.js @@ -2,7 +2,7 @@ $.urlParam = function(name){ try { - var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); + const results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); return decodeURIComponent(results[1].replace(/\+/g, " ")) || 0; } catch (e) { return 0; @@ -13,8 +13,8 @@ function offline_remove(id, callback) { if (confirm("Remove download?")) { - var cacheId = "epube-book." + id; - var promises = []; + const cacheId = "epube-book." + id; + const promises = []; console.log("offline remove: " + id); |