()
| 12 | |
| 13 | const active = () => sampling && !win.isDestroyed() && !win.webContents.isDestroyed() |
| 14 | const clearTimers = () => { |
| 15 | if (sampleTimer) clearTimeout(sampleTimer) |
| 16 | if (stopTimer) clearTimeout(stopTimer) |
| 17 | sampleTimer = undefined |
| 18 | stopTimer = undefined |
| 19 | } |
| 20 | |
| 21 | const schedule = () => { |
| 22 | sampleTimer = setTimeout(() => { |