@skyservice-developers/vue-dev-kit 1.2.8 → 1.2.9
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 +277 -281
- package/package.json +1 -1
- package/src/vue3/components/Header.vue +7 -5
package/package.json
CHANGED
|
@@ -134,15 +134,17 @@ 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())
|
|
138
137
|
if (isInIframe() && props.trackPageName) {
|
|
139
|
-
|
|
138
|
+
window.parent.postMessage({
|
|
140
139
|
type: 'trackVisit',
|
|
141
140
|
name: props.trackPageName,
|
|
142
141
|
path: props.trackPagePath || `/${props.trackPageName}`,
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
}, '*')
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Set rocketMode in parent
|
|
146
|
+
if (isInIframe()) {
|
|
147
|
+
window.parent.postMessage({ type: 'setRocketMode', value: true }, '*')
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
// Load translations from parent
|