()
| 15 | let lastSuccessfulCheckTime = Date.now() |
| 16 | const STALE_UPDATE_THRESHOLD_MS = 48 * 60 * 60 * 1000 // 48 hours |
| 17 | const notifyFeOnUpdateAvailable = () => { |
| 18 | pendingUpdate = true |
| 19 | const executorWindow = currentExecutor().window |
| 20 | if (!executorWindow) { |
| 21 | return |
| 22 | } |
| 23 | try { |
| 24 | executorWindow.webContents.send("app:update-available") |
| 25 | } catch (e) { |
| 26 | logger.warn("Error notifying FE of update", e) |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | const notifyFeOnUpdateError = () => { |
| 31 | const executorWindow = currentExecutor().window |
no test coverage detected