()
| 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 |
no outgoing calls
no test coverage detected