sr-npm 1.7.339 → 1.7.341

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.339",
3
+ "version": "1.7.341",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -102,8 +102,6 @@ async function handleUrlParams(_$w) {
102
102
  if (queryLocationVar) {
103
103
  await handleLocationParam(_$w,queryLocationVar);
104
104
  }
105
-
106
- if()
107
105
  }
108
106
 
109
107
  async function handleKeyWordParam(_$w,keyWord) {
@@ -185,7 +183,7 @@ function init(_$w) {
185
183
 
186
184
  //URL onChange
187
185
  onChange(async ()=>{
188
-
186
+ handleBackAndForth(_$w);
189
187
  const newQueryParams=await location.query();
190
188
  console.log("location.query(): ", newQueryParams);
191
189
  if(newQueryParams.keyWord){
@@ -362,6 +360,7 @@ async function handleDepartmentParam(_$w,department) {
362
360
 
363
361
  if (_$w('#dropdownDepartment').options.find(option => option.value === departmentValue))
364
362
  {
363
+ console.log("department value found in dropdown options ",departmentValue);
365
364
  _$w('#dropdownDepartment').value = departmentValue;
366
365
  await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
367
366
  }