From e5043c48db42da3c3de3bb29e4b78183efbc2d5f Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Mon, 30 Jan 2023 18:04:08 +0100 Subject: [PATCH] fix: js error (#1475) * fix: js error that was introduced with https://github.com/pattern-lab/patternlab-node/pull/1102/files#diff-9111c2e0138c935342632437be7178f25322b8f5c86431f2b85f4fe760d32980L96-R111 * chore: aligned naming --- packages/uikit-workshop/src/scripts/components/pl-nav/nav.js | 2 +- .../src/scripts/lit-components/pl-header/pl-header.js | 4 ++-- .../src/scripts/lit-components/pl-tools-menu/pl-tools-menu.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/uikit-workshop/src/scripts/components/pl-nav/nav.js b/packages/uikit-workshop/src/scripts/components/pl-nav/nav.js index 671d3b37b..a38cf006c 100644 --- a/packages/uikit-workshop/src/scripts/components/pl-nav/nav.js +++ b/packages/uikit-workshop/src/scripts/components/pl-nav/nav.js @@ -108,7 +108,7 @@ class Nav extends BaseComponent { receiveIframeMessage(event) { const self = this; - const data = iframeMsgDataExtraction(e); + const data = iframeMsgDataExtraction(event); if (data.event !== undefined && data.event === 'patternLab.pageClick') { try { diff --git a/packages/uikit-workshop/src/scripts/lit-components/pl-header/pl-header.js b/packages/uikit-workshop/src/scripts/lit-components/pl-header/pl-header.js index 05ef97363..91dc15a64 100644 --- a/packages/uikit-workshop/src/scripts/lit-components/pl-header/pl-header.js +++ b/packages/uikit-workshop/src/scripts/lit-components/pl-header/pl-header.js @@ -149,10 +149,10 @@ class Header extends BaseLitComponent { * * @param {MessageEvent} e A message received by a target object. */ - receiveIframeMessage(e) { + receiveIframeMessage(event) { const self = this; - const data = iframeMsgDataExtraction(e); + const data = iframeMsgDataExtraction(event); if (data.event !== undefined && data.event === 'patternLab.pageClick') { try { diff --git a/packages/uikit-workshop/src/scripts/lit-components/pl-tools-menu/pl-tools-menu.js b/packages/uikit-workshop/src/scripts/lit-components/pl-tools-menu/pl-tools-menu.js index 77ab3d210..fed628846 100644 --- a/packages/uikit-workshop/src/scripts/lit-components/pl-tools-menu/pl-tools-menu.js +++ b/packages/uikit-workshop/src/scripts/lit-components/pl-tools-menu/pl-tools-menu.js @@ -103,10 +103,10 @@ class ToolsMenu extends BaseLitComponent { * * @param {MessageEvent} e A message received by a target object. */ - receiveIframeMessage(e) { + receiveIframeMessage(event) { const self = this; - const data = iframeMsgDataExtraction(e); + const data = iframeMsgDataExtraction(event); if (data.event !== undefined && data.event === 'patternLab.pageClick') { try {