sr-npm 1.7.510 → 1.7.511

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.510",
3
+ "version": "1.7.511",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,9 +13,15 @@ const {
13
13
  _$w('#datasetJobsItem').onReady(async () => {
14
14
 
15
15
  const item = await _$w('#datasetJobsItem').getCurrentItem();
16
+
16
17
  handleReferFriendButton(_$w,item);
18
+
17
19
  _$w('#applyButton').target="_blank";//so it can open in new tab
18
- _$w('#applyButton').onClick(()=>handleApplyButton(_$w,item));
20
+ // _$w('#applyButton').onClick(()=>handleApplyButton(_$w,item));
21
+ const url=appendQueryParams(item.applyLink);
22
+ console.log("url is: ", url);
23
+ _$w('#applyButton').link=url;
24
+ console.log("applyButton.target is: ", _$w('#applyButton').target);
19
25
 
20
26
  _$w('#companyDescriptionText').text = htmlToText(item.jobDescription.companyDescription.text);
21
27
  _$w('#responsibilitiesText').text = htmlToText(item.jobDescription.jobDescription.text);
@@ -39,8 +45,6 @@ const {
39
45
  }
40
46
 
41
47
  function handleApplyButton(_$w,item) {
42
- console.log("item is: ", item);
43
- console.log(query);
44
48
  const applyLinkWithQueryParams=appendQueryParams(item.applyLink);
45
49
  console.log("applyLinkWithQueryParams is: ", applyLinkWithQueryParams);
46
50
  to(applyLinkWithQueryParams);
@@ -51,7 +55,6 @@ const {
51
55
  Object.entries(query).forEach(([key,value])=>{
52
56
  urlObj.searchParams.set(key,value);
53
57
  });
54
- console.log("urlObj is: ", urlObj);
55
58
  return urlObj.toString();
56
59
  }
57
60
  module.exports = {