()
| 735 | let refreshInterval: ReturnType<typeof setInterval> | null = null; |
| 736 | |
| 737 | function startAutoRefresh(): void { |
| 738 | stopAutoRefresh(); |
| 739 | refreshInterval = setInterval(() => void refreshTrafficLog(), 3000); |
| 740 | } |
| 741 | |
| 742 | function stopAutoRefresh(): void { |
| 743 | if (refreshInterval) { clearInterval(refreshInterval); refreshInterval = null; } |
no test coverage detected