From a7377ee493572ab7d58334cb62a4c1b9da9c4d0f Mon Sep 17 00:00:00 2001 From: Josef Bredreck Date: Thu, 11 Jun 2020 17:45:31 +0200 Subject: [PATCH] Fix event from iframe not evaluated --- .../src/scripts/utils/iframe-msg-data-extraction.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/uikit-workshop/src/scripts/utils/iframe-msg-data-extraction.js b/packages/uikit-workshop/src/scripts/utils/iframe-msg-data-extraction.js index aa68d688b..372b01b4f 100644 --- a/packages/uikit-workshop/src/scripts/utils/iframe-msg-data-extraction.js +++ b/packages/uikit-workshop/src/scripts/utils/iframe-msg-data-extraction.js @@ -2,14 +2,14 @@ * Does the origin sending the message match the current host? * if not dev/null the request * - * @param {MessageEvent} e A message received by a target object. + * @param {MessageEvent} event A message received by a target object. */ -export function iframeMsgDataExtraction(e) { +export function iframeMsgDataExtraction(event) { if ( window.location.protocol !== 'file:' && event.origin !== window.location.protocol + '//' + window.location.host ) { - return; + return {}; } try {