INNER CODE UNIT · TypeScript
FOUR_HOURS
sindresorhus/caprine · source/index.ts:70
const FOUR_HOURS = 1000 * 60 * 60 * 4;
setInterval(async () => {
await autoUpdater.checkForUpdatesAndNotify();
}, FOUR_HOURS);
await autoUpdater.checkForUpdatesAndNotify();
})();
}
let mainWindow: BrowserWindow;
let isQuitting = false;
let previousMessageCount = 0;
let dockMenu: Menu;
let isDNDEnabled = false;
if (!app.requestSingleInstanceLock()) {
app.quit();
}