@truly-you/trulyyou-web-sdk 0.1.14 → 0.1.15
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 -2
package/package.json
CHANGED
package/src/sdk/TrulyYouSDK.ts
CHANGED
|
@@ -322,9 +322,12 @@ export class TrulyYouSDK {
|
|
|
322
322
|
const handleMessage = async (event: MessageEvent) => {
|
|
323
323
|
const data = event.data as any
|
|
324
324
|
|
|
325
|
-
//
|
|
325
|
+
// Log ALL messages during probe to debug
|
|
326
|
+
console.log('[SDK-PROBE-DEBUG]: Message received - type:', data?.type, 'origin:', event.origin, 'data:', data)
|
|
327
|
+
|
|
328
|
+
// Only process probe-related messages
|
|
326
329
|
if (data?.type === 'KEY_CHECK_RESULT' || data?.type === 'KEY_CHECK_FAILED') {
|
|
327
|
-
console.log('[SDK-PROBE]:
|
|
330
|
+
console.log('[SDK-PROBE]: Processing probe message:', event.data, 'from origin:', event.origin)
|
|
328
331
|
|
|
329
332
|
try {
|
|
330
333
|
const frontendOrigin = new URL(this.frontendUrl).origin
|