From b36a6dde0f4e8cd7943a7359370d7e2770abbdc0 Mon Sep 17 00:00:00 2001 From: Andrey Kozlov Date: Tue, 7 Jun 2022 15:20:04 +0100 Subject: [PATCH] fix iframe --- src/embedded-script.js | 2 +- src/modal-script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/embedded-script.js b/src/embedded-script.js index 7d4d43b7..318d7720 100644 --- a/src/embedded-script.js +++ b/src/embedded-script.js @@ -67,7 +67,7 @@ const CncfLandscapeApp = { search: window.location.search, pathname: window.location.pathname } - }); + }, '*'); } } document.addEventListener('DOMContentLoaded', () => CncfLandscapeApp.init()); diff --git a/src/modal-script.js b/src/modal-script.js index fa97af0d..7ff1e6f5 100644 --- a/src/modal-script.js +++ b/src/modal-script.js @@ -144,7 +144,7 @@ const CncfLandscapeApp = { }, hideSelectedItem: function() { - window.parent.postMessage({type: 'landscapeapp-hide'}); + window.parent.postMessage({type: 'landscapeapp-hide'}, '*'); } } document.addEventListener('DOMContentLoaded', () => CncfLandscapeApp.init());