neon_arch commited on
Commit
9253d9e
·
1 Parent(s): 1ff51af

✨ feat: replace consts with lets (#210)

Browse files
Files changed (1) hide show
  1. public/static/pagination.js +4 -4
public/static/pagination.js CHANGED
@@ -3,8 +3,8 @@
3
  * @returns {void}
4
  */
5
  function navigate_forward() {
6
- const url = new URL(window.location);
7
- const searchParams = url.searchParams;
8
 
9
  let q = searchParams.get('q');
10
  let page = parseInt(searchParams.get('page'));
@@ -23,8 +23,8 @@ function navigate_forward() {
23
  * @returns {void}
24
  */
25
  function navigate_backward() {
26
- const url = new URL(window.location);
27
- const searchParams = url.searchParams;
28
 
29
  let q = searchParams.get('q');
30
  let page = parseInt(searchParams.get('page'));
 
3
  * @returns {void}
4
  */
5
  function navigate_forward() {
6
+ let url = new URL(window.location);
7
+ let searchParams = url.searchParams;
8
 
9
  let q = searchParams.get('q');
10
  let page = parseInt(searchParams.get('page'));
 
23
  * @returns {void}
24
  */
25
  function navigate_backward() {
26
+ let url = new URL(window.location);
27
+ let searchParams = url.searchParams;
28
 
29
  let q = searchParams.get('q');
30
  let page = parseInt(searchParams.get('page'));