Skip to content

Commit

Permalink
Merge pull request #18 from festicket/FES-8816-update-obj-to-parentIF…
Browse files Browse the repository at this point in the history
…rame

fix: pass event as a type for parentIFrame
  • Loading branch information
Rokas authored Dec 18, 2018
2 parents 94a6616 + be818d5 commit 99dfc90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function trackFactory(key, getGlobalData) {
const { track } = await loadAnalytics(key);
const compoundedData = Object.assign({}, getGlobalData(), data);
if ('parentIFrame' in window) {
window.parentIFrame.sendMessage({ type: 'track', data: compoundedData });
window.parentIFrame.sendMessage({ type: event, data: compoundedData });
}
return track(event, compoundedData);
};
Expand Down

0 comments on commit 99dfc90

Please sign in to comment.