MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / notifyFeOnUpdateAvailable

Function notifyFeOnUpdateAvailable

projects/electron/src/modules/autoUpdate.ts:17–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15let lastSuccessfulCheckTime = Date.now()
16const STALE_UPDATE_THRESHOLD_MS = 48 * 60 * 60 * 1000 // 48 hours
17const 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
30const notifyFeOnUpdateError = () => {
31 const executorWindow = currentExecutor().window

Callers 2

checkForUpdatesAndNotifyFunction · 0.85
loadFunction · 0.85

Calls 2

currentExecutorFunction · 0.90
sendMethod · 0.65

Tested by

no test coverage detected