diff options
author | Andrew Dolgov <[email protected]> | 2018-11-29 15:04:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-11-29 15:04:27 +0300 |
commit | b026d16edeaebd6dbeba66198644ee4a2ce02dae (patch) | |
tree | d7cb860f3e1166b3310c8722a24f926f98c6d834 /js/common.js | |
parent | e906fd5d3ac3085e54a5f82abdd83430f741239c (diff) |
some eslint-related fixes
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); |