@skyservice-developers/vue-dev-kit 1.2.7 → 1.2.8
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/vue3/style.css +1 -1
- package/dist/vue3/vue-dev-kit.cjs +1 -1
- package/dist/vue3/vue-dev-kit.js +285 -281
- package/package.json +1 -1
- package/src/vue3/components/Header.vue +5 -2
package/package.json
CHANGED
|
@@ -134,12 +134,15 @@ const localStorageItems = ref([])
|
|
|
134
134
|
const parentLang = ref({})
|
|
135
135
|
|
|
136
136
|
// Track page visit in parent's componentStats
|
|
137
|
+
console.log('[Header] trackPageName:', props.trackPageName, 'isInIframe:', isInIframe())
|
|
137
138
|
if (isInIframe() && props.trackPageName) {
|
|
138
|
-
|
|
139
|
+
const msg = {
|
|
139
140
|
type: 'trackVisit',
|
|
140
141
|
name: props.trackPageName,
|
|
141
142
|
path: props.trackPagePath || `/${props.trackPageName}`,
|
|
142
|
-
}
|
|
143
|
+
}
|
|
144
|
+
console.log('[Header] sending trackVisit:', msg)
|
|
145
|
+
window.parent.postMessage(msg, '*')
|
|
143
146
|
}
|
|
144
147
|
|
|
145
148
|
// Load translations from parent
|