diff options
author | uditgulati | 2020-09-13 15:24:06 -0500 |
---|---|---|
committer | uditgulati | 2020-11-01 06:50:51 -0600 |
commit | e106f5888cb4d761a6dcb71dc0273e461ef3c71a (patch) | |
tree | 9b6196974a86b3122bc0240a813b76523ce07d4f | |
parent | e83bcab9f01ad1aa279f15e8a19700b802320f8b (diff) | |
download | genenetwork2-e106f5888cb4d761a6dcb71dc0273e461ef3c71a.tar.gz |
replace var with let in getParams() local variables
-rw-r--r-- | wqflask/wqflask/templates/search_result_page.html | 4 | ||||
-rw-r--r-- | wqflask/wqflask/templates/snp_browser.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html index 0bcbd492..6fe44d1a 100644 --- a/wqflask/wqflask/templates/search_result_page.html +++ b/wqflask/wqflask/templates/search_result_page.html @@ -176,9 +176,9 @@ $(document).ready( function () { var getParams = function(url) { - var parser = document.createElement('a'); + let parser = document.createElement('a'); parser.href = url; - var params = parser.search.substring(1); + let params = parser.search.substring(1); if(params.length > 0) { return ('?'+params); } diff --git a/wqflask/wqflask/templates/snp_browser.html b/wqflask/wqflask/templates/snp_browser.html index c312aee8..129d03c2 100644 --- a/wqflask/wqflask/templates/snp_browser.html +++ b/wqflask/wqflask/templates/snp_browser.html @@ -233,9 +233,9 @@ <script language="javascript"> var getParams = function(url) { - var parser = document.createElement('a'); + let parser = document.createElement('a'); parser.href = url; - var params = parser.search.substring(1); + let params = parser.search.substring(1); if(params.length > 0) { return ('?'+params); } |