MCPcopy Create free account
hub / github.com/dailydotdev/apps / onLoad

Function onLoad

packages/shared/src/features/monetization/ExcoPlayerFrame.tsx:40–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 // A frame-ancestors refusal or a network error still fires `load`, with the
39 // browser's error page in the frame instead of ours.
40 const onLoad = () => {
41 if (!isReadyRef.current) {
42 readyTimerRef.current = setTimeout(() => {
43 if (!isReadyRef.current) {
44 fail('frame_failed');
45 }
46 }, readyTimeout);
47 }
48 };
49
50 useEffect(() => () => clearTimeout(readyTimerRef.current), []);
51

Callers 1

MessagePostPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected