From 0afea2ebca28496cb59b66386e0c0187bef05cc5 Mon Sep 17 00:00:00 2001 From: "David J. Bradshaw" Date: Fri, 30 Aug 2024 14:40:19 +0100 Subject: [PATCH] Refactor readData from page --- example/html/child/frame.animate.html | 2 +- example/html/child/frame.content.html | 2 +- packages/child/index.js | 23 +++++++---------------- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/example/html/child/frame.animate.html b/example/html/child/frame.animate.html index dfe49dae4..b309db9a0 100644 --- a/example/html/child/frame.animate.html +++ b/example/html/child/frame.animate.html @@ -116,7 +116,7 @@

Data returned by parentIFrame.getParentProps()

const rowParent = ([key, info]) => `${key}${Object.entries(info).map(row).join('\n')}
` - window.iFrameResizer = { + window.iframeResizer = { // We cheat a little here, as the iframe resize can be one // frame behind the actual content height in the iframe if // we're having to use postMessage due to operating cross diff --git a/example/html/child/frame.content.html b/example/html/child/frame.content.html index 6a1dd7c98..d99c0eaa8 100644 --- a/example/html/child/frame.content.html +++ b/example/html/child/frame.content.html @@ -21,7 +21,7 @@ }