Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
141
export
function
postMessageWhenAvailable(iframe, message) {
142
iframe?.contentWindow?./*OK*/ postMessage(message,
'*'
);
143
}
Callers
4
BentoVimeoWithRef
Function · 0.90
listenToVimeoEvents
Function · 0.90
sendCommand_
Method · 0.90
onMessage
Function · 0.90
Calls
1
postMessage
Method · 0.45
Tested by
no test coverage detected