mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
remove querySelector call
This commit is contained in:
@@ -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