Skip to content

Commit 5ce62cf

Browse files
Merge pull request #125 from ctayl/patch-2
add guard to onReceivedMessage
2 parents 719b037 + 05c5df3 commit 5ce62cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

widget/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@
598598
});
599599

600600
buildfire.messaging.onReceivedMessage = function (event) {
601-
if (event) {
601+
if (event && event.message) {
602602
var plugin = event.message.data;
603603
switch (event.name) {
604604
case 'OPEN_PLUGIN':
@@ -1480,4 +1480,4 @@
14801480
<link href="glyphicons.css" rel="stylesheet"/>
14811481
<!-- endbuild -->
14821482
</body>
1483-
</html>
1483+
</html>

0 commit comments

Comments
 (0)