Skip to content

Commit

Permalink
Do not use getRootNode to create element (#32898)
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Feb 25, 2021
1 parent 39d1d7f commit 723075c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/amp-onetap-google/0.1/amp-onetap-google.js
Expand Up @@ -189,7 +189,7 @@ export class AmpOnetapGoogle extends AMP.BaseElement {
if (this.iframe_) {
return;
}
this.iframe_ = this.getAmpDoc().getRootNode().createElement('iframe');
this.iframe_ = this.getAmpDoc().win.document.createElement('iframe');

// Don't insert <iframe> until URL has been expanded.
// Likewise, don't display the UI until then.
Expand Down

0 comments on commit 723075c

Please sign in to comment.