We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e780e21 + a7377ee commit e37df7dCopy full SHA for e37df7d
packages/uikit-workshop/src/scripts/utils/iframe-msg-data-extraction.js
@@ -2,14 +2,14 @@
2
* Does the origin sending the message match the current host?
3
* if not dev/null the request
4
*
5
- * @param {MessageEvent} e A message received by a target object.
+ * @param {MessageEvent} event A message received by a target object.
6
*/
7
-export function iframeMsgDataExtraction(e) {
+export function iframeMsgDataExtraction(event) {
8
if (
9
window.location.protocol !== 'file:' &&
10
event.origin !== window.location.protocol + '//' + window.location.host
11
) {
12
- return;
+ return {};
13
}
14
15
try {
0 commit comments