@pega/react-sdk-overrides 8.23.11-debug2 → 8.23.11-debug4

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.
@@ -94,13 +94,13 @@ class PegaAuth {
94
94
  const myWinOnLoad = () => {
95
95
  try{
96
96
  if( bWinIframe ) {
97
- elIframe.contentWindow.postMessage({type:"PegaAuth"}, redirectOrigin);
98
97
  // eslint-disable-next-line no-console
99
98
  console.log("authjs(login): loaded a page in iFrame");
99
+ elIframe.contentWindow.postMessage({type:"PegaAuth"}, redirectOrigin);
100
100
  } else {
101
- myWindow.postMessage({type:"PegaAuth"}, redirectOrigin);
102
101
  // eslint-disable-next-line no-console
103
102
  console.log(`authjs(login): loaded a page in popup window...sending 'PegaAuth' message. redirectOrigin: ${redirectOrigin}`);
103
+ myWindow.postMessage({type:"PegaAuth"}, redirectOrigin);
104
104
  }
105
105
  } catch(e) {
106
106
  // eslint-disable-next-line no-console
@@ -120,7 +120,8 @@ class PegaAuth {
120
120
  // eslint-disable-next-line prefer-promise-reject-errors
121
121
  reject("closed");
122
122
  }
123
- }, 500);
123
+ myWindow.postMessage({type:"PegaAuth"}, redirectOrigin);
124
+ }, 500);
124
125
  try {
125
126
  myWindow.addEventListener("load", myWinOnLoad, true);
126
127
  } catch(e) {
@@ -211,12 +212,16 @@ class PegaAuth {
211
212
  if( this.config.iframeLoginUI ) {
212
213
  elIframe.style.display="block";
213
214
  elCloseBtn.style.display="block";
214
- } else {
215
+ } else {
215
216
  fnCloseIframe();
217
+ // eslint-disable-next-line no-console
218
+ console.log(`Opening popup inside tmrAuthComplete (bWinIframe: ${bWinIframe})`);
216
219
  fnOpenPopup();
217
- }
220
+ }
218
221
  }, iframeTimeout);
219
222
  } else {
223
+ // eslint-disable-next-line no-console
224
+ console.log(`Opening popup outside tmrAuthComplete (bWinIframe: ${bWinIframe})`);
220
225
  fnOpenPopup();
221
226
  }
222
227
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/react-sdk-overrides",
3
- "version": "8.23.11-debug2",
3
+ "version": "8.23.11-debug4",
4
4
  "description": "React SDK - Code for overriding components",
5
5
  "_filesComment": "During packing, npm ignores everything NOT in the files list",
6
6
  "files": [