Fix ready message sent to parent frame

This commit is contained in:
artrejo
2021-03-18 20:41:43 -07:00
parent 3cccbdfe81
commit f929a638d6
6 changed files with 35 additions and 20 deletions

View File

@@ -79,7 +79,7 @@ const initTestExplorer = async (): Promise<void> => {
// After we have received the "ready" message from the child iframe we can post configuration
// This simulates the same action that happens in the portal
console.dir(event.data);
if (event.data?.data === "ready") {
if (event.data?.kind === "ready") {
iframe.contentWindow.postMessage(
{
signature: "pcIframe",