MCPcopy Create free account
hub / github.com/ampproject/amphtml / postMessageWhenAvailable

Function postMessageWhenAvailable

src/iframe-video.js:141–143  ·  view source on GitHub ↗
(iframe, message)

Source from the content-addressed store, hash-verified

139 * @param {*} message
140 */
141export function postMessageWhenAvailable(iframe, message) {
142 iframe?.contentWindow?./*OK*/ postMessage(message, '*');
143}

Callers 4

BentoVimeoWithRefFunction · 0.90
listenToVimeoEventsFunction · 0.90
sendCommand_Method · 0.90
onMessageFunction · 0.90

Calls 1

postMessageMethod · 0.45

Tested by

no test coverage detected