@mx-cartographer/experiences 6.2.9-alpha.al3 → 6.2.9-alpha.al5
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.es.js +7 -5
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -3199,17 +3199,19 @@ const Dn = ({
|
|
3199
3199
|
title: d = ""
|
3200
3200
|
}) => {
|
3201
3201
|
const [_, { height: u, width: h }] = oc(), m = () => {
|
3202
|
+
console.log(window.self !== window.top);
|
3202
3203
|
try {
|
3203
|
-
window.
|
3204
|
-
{
|
3204
|
+
if (window.self !== window.top) {
|
3205
|
+
const C = {
|
3205
3206
|
type: "MINI_WIDGET_CTA_CLICK",
|
3206
3207
|
payload: {
|
3207
3208
|
widgetTitle: d,
|
3208
3209
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
3209
3210
|
}
|
3210
|
-
}
|
3211
|
-
"*"
|
3212
|
-
|
3211
|
+
};
|
3212
|
+
window.parent.postMessage(C, "*");
|
3213
|
+
}
|
3214
|
+
r && r();
|
3213
3215
|
} catch (C) {
|
3214
3216
|
console.error("Error sending postMessage:", C);
|
3215
3217
|
}
|