remove querySelector call

This commit is contained in:
Riley Davis
2017-03-02 12:34:10 -07:00
parent 2246728c80
commit a6c7fe85b9
+1 -1
View File
@@ -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;
}
});