Skip to content

Commit

Permalink
fix: js error (pattern-lab#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke authored Jan 30, 2023
1 parent 9fb66d2 commit e5043c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e5043c4

Please sign in to comment.