sr-npm 1.7.1285 → 1.7.1286

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.1285",
3
+ "version": "1.7.1286",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  const { COLLECTIONS,CUSTOM_VALUES_COLLECTION_FIELDS,JOBS_COLLECTION_FIELDS } = require('../backend/collectionConsts');
2
2
  const { CAREERS_PAGE_SELECTORS, GLOBAL_SECTIONS_SELECTORS } = require('../public/selectors');
3
-
4
- const { window:wixWindow } = require('@wix/site-window');
3
+ const { wixWindow } = require('wix-window');
4
+ const { window } = require('@wix/site-window');
5
5
  const { queryParams,onChange} = require('wix-location-frontend');
6
6
  const { location } = require("@wix/site-location");
7
7
  const {
@@ -50,8 +50,9 @@ const pagination = {
50
50
 
51
51
  async function careersMultiBoxesPageOnReady(_$w,urlParams) {
52
52
  //to handle back and forth , url changes
53
- selectedParamsList.push(urlParams);
53
+
54
54
  onChange(async ()=>{
55
+ console.log("wixwindow.refere",wixWindow.referrer);
55
56
  urlOnchangeIsActive=true;
56
57
  await handleBackAndForth(_$w);
57
58
  urlOnchangeIsActive=false;
@@ -69,10 +70,11 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
69
70
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.CLEAR_ALL_BUTTON_ID).onClick(async () => {
70
71
  await clearAll(_$w);
71
72
  });
72
- if (await wixWindow.formFactor() === "Mobile") {
73
+ if (await window.formFactor() === "Mobile") {
73
74
  handleFilterInMobile(_$w);
74
75
  }
75
76
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.RESULTS_MULTI_STATE_BOX).changeState("results");
77
+ selectedParamsList.push(urlParams);
76
78
  }
77
79
 
78
80
  async function handleBackAndForth(_$w){