sr-npm 1.7.93 → 1.7.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.93",
3
+ "version": "1.7.94",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -72,11 +72,17 @@ async function setPageParamInUrl() {
72
72
  console.log("query is: ", query);
73
73
  console.log("query.page is: ", query.page);
74
74
  console.log(" is: ", Number(query.page) + 1);
75
- if(!queryPageVar){
76
- queryPageVar=1
75
+ console.log("queryPageVar is: ", queryPageVar);
76
+ if(queryPageVar){
77
+ queryParams.add({ page: Number(queryPageVar) + 1 })
78
+ queryPageVar=Number(queryPageVar) + 1
79
+ }
80
+ else{
81
+ queryParams.add({ page: 2 })
82
+ queryPageVar=2
77
83
  }
78
84
 
79
- queryPageVar ? queryParams.add({ page: Number(queryPageVar) + 1 }) : queryParams.add({ page: 2 });
85
+
80
86
  }
81
87
  async function handleUrlParams(_$w) {
82
88
  // const query = await location.query();