sr-npm 1.7.351 → 1.7.352

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.351",
3
+ "version": "1.7.352",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -333,6 +333,10 @@ async function applyFilters(_$w, skipUrlUpdate = false) {
333
333
  queryParams.add({ location: encodeURIComponent(filter.value) });
334
334
  //queryLocationVar=filter.value;
335
335
  }
336
+ if(filter.field === 'remote'){
337
+ queryParams.add({ jobType: encodeURIComponent(filter.value) });
338
+ //queryJobTypeVar=filter.value;
339
+ }
336
340
  }
337
341
  if(filter.field === 'remote') {
338
342
  value = filter.value === 'true';
@@ -357,6 +361,11 @@ async function applyFilters(_$w, skipUrlUpdate = false) {
357
361
  queryParams.remove(["location" ]);
358
362
  // queryLocationVar=undefined;
359
363
  }
364
+ if(filter.field === 'remote'){
365
+ console.log("removing jobType from url")
366
+ queryParams.remove(["jobType" ]);
367
+ // queryJobTypeVar=undefined;
368
+ }
360
369
  }
361
370
  }
362
371
  });