From a6c7fe85b91977eda145981f1786a1d5a1c3bb6d Mon Sep 17 00:00:00 2001 From: Riley Davis Date: Thu, 2 Mar 2017 12:34:10 -0700 Subject: [PATCH] remove querySelector call --- client/coral-embed/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-embed/src/index.js b/client/coral-embed/src/index.js index d3a6a4ee5..8d8855aa7 100644 --- a/client/coral-embed/src/index.js +++ b/client/coral-embed/src/index.js @@ -36,7 +36,7 @@ function configurePymParent(pymParent, asset_url) { // Resize parent iframe height when child height changes pymParent.onMessage('height', function(height) { if (height !== cachedHeight) { - pymParent.el.querySelector('iframe').height = `${height }px`; + pymParent.el.firstChild.style.height = `${height}px`; cachedHeight = height; } });