()
| 753 | |
| 754 | useEffect(() => { |
| 755 | const onVisibility = () => { |
| 756 | if (document.hidden && tracking) { |
| 757 | setMessage("你刚才离开了挑战页,期间不会记录。回到页面后继续。"); |
| 758 | } |
| 759 | }; |
| 760 | document.addEventListener("visibilitychange", onVisibility); |
| 761 | return () => document.removeEventListener("visibilitychange", onVisibility); |
| 762 | }, [tracking]); |
nothing calls this directly
no outgoing calls
no test coverage detected