sr-npm 1.7.248 → 1.7.249

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.248",
3
+ "version": "1.7.249",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,8 +1,8 @@
1
1
  const { getAllPositions } = require('../backend/queries');
2
2
  const {wixData} = require('wix-data');
3
- //const { location } = require('@wix/site-location');
3
+ const { location } = require('@wix/site-location');
4
4
  const { window } = require('@wix/site-window');
5
- const { query,queryParams,to,wixLocationFrontend } = require("wix-location-frontend");
5
+ const { query,queryParams,to } = require("wix-location-frontend");
6
6
  const {
7
7
  debounce,
8
8
  getFilter,
@@ -155,7 +155,7 @@ async function bind(_$w) {
155
155
 
156
156
  _$w('#positionsRepeater').onItemReady(async ($item, itemData) => {
157
157
  $item('#positionItem').onClick(async () => {
158
- let baseUrl = wixLocationFrontend.baseUrl();
158
+ let baseUrl = await location.baseUrl();
159
159
  to(`${baseUrl}/jobs/${itemData._id}`);
160
160
  });
161
161
  });