Skip to content

Commit

Permalink
Add empty data
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu Stellan committed Dec 20, 2019
1 parent ca5aaac commit 82587ba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
<p>Invalid MessageType from Mock Page: falseMessageType</p>
<div><button onclick="mockPostMessage('unmatchedMessageType')">Post Message</button></div>
</div>


<div class="child">
<p>The data object of GA event is empty</p>
<div><button onclick="mockPostMessage('emptyData')">Post Message</button></div>
</div>
</div>

<script>
Expand Down Expand Up @@ -71,6 +75,11 @@
event: "/ga/nds/cta",
url: "https://stewu-h8tch.github.io/post-message/"
}
},
emptyData: {
appKey: "test-id",
messageType: "gaEventTracking",
data: {}
}
};

Expand Down

0 comments on commit 82587ba

Please sign in to comment.