()
| 872 | } |
| 873 | |
| 874 | function stopTracking() { |
| 875 | if (watchRef.current !== null) { |
| 876 | navigator.geolocation.clearWatch(watchRef.current); |
| 877 | watchRef.current = null; |
| 878 | } |
| 879 | setTracking(false); |
| 880 | setMessage("已暂停点亮。"); |
| 881 | } |
| 882 | |
| 883 | function resetSimulator(clearProgress = false) { |
| 884 | if (!challenge) { |
nothing calls this directly
no outgoing calls
no test coverage detected