sr-npm 1.7.871 → 1.7.872

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/backend/consts.js CHANGED
@@ -108,8 +108,8 @@ const supportTeamsPageIds={
108
108
  }
109
109
  }
110
110
  const LINKS={
111
- Application:'https://www.smartrecruiters.com/app/employee-portal/68246e5512d84f4c00a19e62/job-applications',
112
- Referrals:'https://www.smartrecruiters.com/app/referrals/',
111
+ myApplication:'https://www.smartrecruiters.com/app/employee-portal/68246e5512d84f4c00a19e62/job-applications',
112
+ myReferrals:'https://www.smartrecruiters.com/app/referrals/',
113
113
  login:'https://www.smartrecruiters.com/web-sso/saml/${companyId}/login',
114
114
  }
115
115
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.871",
3
+ "version": "1.7.872",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,13 +1,12 @@
1
1
  const{isElementExistOnPage} = require('psdev-utils');
2
2
  const { location } = require("@wix/site-location");
3
3
  const { LINKS } = require('../backend/consts');
4
- // const {getApiKeys} = require('../backend/secretsData');
4
+
5
5
 
6
6
  let companyIdGlobal;
7
7
  async function masterPageOnReady(_$w,getApiKeys) {
8
8
  const {companyId,templateType} = await getApiKeys();
9
9
  companyIdGlobal=companyId;
10
- console.log("companyId: ", companyIdGlobal);
11
10
  bindButton(_$w,"myApplication");
12
11
  bindButton(_$w,"myReferrals");
13
12
  bindButton(_$w,"login");
@@ -18,14 +17,11 @@ async function masterPageOnReady(_$w,getApiKeys) {
18
17
  if(buttonName==="login"){
19
18
 
20
19
  _$w(`#${buttonName}Button`).onClick(()=>{
21
- console.log("login button clicked");
22
20
  location.to(LINKS[buttonName].replace("${companyId}",companyIdGlobal));
23
21
  });
24
22
  }
25
23
  else{
26
24
  _$w(`#${buttonName}Button`).onClick(()=>{
27
- console.log(`${buttonName} button clicked`);
28
- console.log("link to be used: ", LINKS[buttonName]);
29
25
  location.to(LINKS[buttonName]);
30
26
  });
31
27
  }