MCPcopy
hub / github.com/react/create-react-app / post

Function post

packages/react-error-overlay/fixtures/bundle_u.mjs:5246–5259  ·  view source on GitHub ↗
(msg, origin)

Source from the content-addressed store, hash-verified

5244 }
5245 };
5246 var post = function(msg, origin) {
5247 debug('post', msg, origin);
5248 try {
5249 // When the iframe is not loaded, IE raises an exception
5250 // on 'contentWindow'.
5251 setTimeout(function() {
5252 if (iframe && iframe.contentWindow) {
5253 iframe.contentWindow.postMessage(msg, origin);
5254 }
5255 }, 0);
5256 } catch (x) {
5257 // intentionally empty
5258 }
5259 };
5260
5261 iframe.src = iframeUrl;
5262 iframe.style.display = 'none';

Callers

nothing calls this directly

Calls 1

debugFunction · 0.70

Tested by

no test coverage detected