MCPcopy
hub / github.com/ampproject/amphtml / initialize_

Method initialize_

third_party/subscriptions-project/swg.js:15424–15427  ·  view source on GitHub ↗

* Appends the iframe to the DOM and updates the post message service. * @private

()

Source from the content-addressed store, hash-verified

15422 * @private
15423 */
15424 static initialize_() {
15425 document.body.appendChild(iframe);
15426 postMessageService = new PostMessageService(iframe.contentWindow);
15427 }
15428
15429 /**
15430 * Sends a message to the iframe and wait for a response.

Callers 2

test-amp-img.jsFile · 0.45
loadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected