()
| 108 | } |
| 109 | |
| 110 | private startQuickCheck(): void { |
| 111 | this.quickCheckInterval = window.setInterval(() => { |
| 112 | const now = Date.now(); |
| 113 | const timeSinceLastCheck = now - this.lastQuickCheckTime; |
| 114 | |
| 115 | // Check for system sleep/wake for quick checks too |
| 116 | if (timeSinceLastCheck > this.QUICK_CHECK_INTERVAL + 60000) { |
| 117 | // 1 minute tolerance |
| 118 | // Don't spam with catch-up, just process current queue |
| 119 | } |
| 120 | |
| 121 | this.checkNotificationQueue(); |
| 122 | this.lastQuickCheckTime = now; |
| 123 | }, this.QUICK_CHECK_INTERVAL); |
| 124 | } |
| 125 | |
| 126 | private async scanTasksAndBuildQueue(): Promise<void> { |
| 127 | // Clear existing queue and rebuild |
no test coverage detected