@truly-you/trulyyou-web-sdk 0.1.10 → 0.1.12
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/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/sdk/TrulyYouSDK.ts +5 -5
package/package.json
CHANGED
package/src/sdk/TrulyYouSDK.ts
CHANGED
|
@@ -287,8 +287,8 @@ export class TrulyYouSDK {
|
|
|
287
287
|
const iframe = document.createElement('iframe')
|
|
288
288
|
iframe.style.cssText = `position: fixed; top: -9999px; left: -9999px; width: 1px; height: 1px; border: none; opacity: 0; pointer-events: none;`
|
|
289
289
|
|
|
290
|
-
// Create a probe endpoint URL -
|
|
291
|
-
const probeUrl = new URL(`${this.frontendUrl}/
|
|
290
|
+
// Create a probe endpoint URL - use dedicated probe.html for instant response (no React hydration)
|
|
291
|
+
const probeUrl = new URL(`${this.frontendUrl}/probe.html`)
|
|
292
292
|
probeUrl.searchParams.set('probe', 'true')
|
|
293
293
|
probeUrl.searchParams.set('origin', origin)
|
|
294
294
|
|
|
@@ -361,12 +361,12 @@ export class TrulyYouSDK {
|
|
|
361
361
|
document.body.appendChild(iframe)
|
|
362
362
|
console.log('[SDK-PROBE]: Iframe appended to body, waiting for response...')
|
|
363
363
|
|
|
364
|
-
//
|
|
364
|
+
// Timeout to allow for React hydration on sign page
|
|
365
365
|
timeout = setTimeout(() => {
|
|
366
|
-
console.log('[SDK-PROBE]: Timeout reached (
|
|
366
|
+
console.log('[SDK-PROBE]: Timeout reached (3000ms), no response from iframe')
|
|
367
367
|
cleanup()
|
|
368
368
|
resolve(null)
|
|
369
|
-
},
|
|
369
|
+
}, 3000)
|
|
370
370
|
} catch (error) {
|
|
371
371
|
console.error('[SDK-PROBE]: Error in probeIframeForKey:', error)
|
|
372
372
|
resolve(null)
|