(path = '/', highlightFile = null)
| 13211 | setPwnLogIndicator(true); |
| 13212 | fetchPwnLogs({ initial: Boolean(options.initial) || pwnLogCursor === 0, silent: true }); |
| 13213 | pwnLogStreamTimer = setInterval(() => fetchPwnLogs({ silent: true }), PWN_LOG_POLL_INTERVAL); |
| 13214 | } |
| 13215 | |
| 13216 | function stopPwnLogStreaming() { |
| 13217 | if (pwnLogStreamTimer) { |
| 13218 | clearInterval(pwnLogStreamTimer); |
| 13219 | pwnLogStreamTimer = null; |
| 13220 | } |
| 13221 | pwnLogStreaming = false; |
| 13222 | setPwnLogIndicator(false); |
| 13223 | } |
| 13224 | |
| 13225 | function schedulePwnLogStop() { |
| 13226 | if (pwnLogStopTimeout) { |
| 13227 | return; |
| 13228 | } |
| 13229 | pwnLogStopTimeout = setTimeout(() => { |
| 13230 | stopPwnLogStreaming(); |
| 13231 | pwnLogStopTimeout = null; |
| 13232 | }, 12000); |
| 13233 | } |
no test coverage detected