Skip to content

Commit e37df7d

Browse files
authored
Merge pull request #1217 from JosefBredereck/fix-iframe-message
Fix event from iframe not evaluated
2 parents e780e21 + a7377ee commit e37df7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/uikit-workshop/src/scripts/utils/iframe-msg-data-extraction.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
* Does the origin sending the message match the current host?
33
* if not dev/null the request
44
*
5-
* @param {MessageEvent} e A message received by a target object.
5+
* @param {MessageEvent} event A message received by a target object.
66
*/
7-
export function iframeMsgDataExtraction(e) {
7+
export function iframeMsgDataExtraction(event) {
88
if (
99
window.location.protocol !== 'file:' &&
1010
event.origin !== window.location.protocol + '//' + window.location.host
1111
) {
12-
return;
12+
return {};
1313
}
1414

1515
try {

0 commit comments

Comments
 (0)