mirror of
https://github.com/wassname/talk.git
synced 2026-10-01 12:42:56 +08:00
remove querySelector call
This commit is contained in:
1 parent
2246728c80
commit
a6c7fe85b9
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user