From: Andrew Gundersen Date: Tue, 13 Apr 2021 14:57:32 +0000 (-0500) Subject: enhancements X-Git-Tag: v0.9.1 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=809ec5e05a78394ccc37893da72688e4eebe7acd;p=mime-chat enhancements --- diff --git a/package.json b/package.json index b6bdecf..de60418 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "Crimata", "productName": "Crimata Messenger", "description": "Cross-platform messenger application built with electron, vue3, and TS.", - "version": "0.9.2", + "version": "0.9.1", "private": true, "author": { "name": "Enrique Hernandez" diff --git a/src/background.ts b/src/background.ts index be71771..95db12b 100644 --- a/src/background.ts +++ b/src/background.ts @@ -21,15 +21,14 @@ const isDev = require('electron-is-dev'); // NOTE Program Begins Here (async () => { + autoUpdater.requestHeaders = { 'PRIVATE-TOKEN': 'seMF_apn237iUw8puG9a' } autoUpdater.logger = log; - // Check for an update 10sec after Program Starts - setTimeout(function () { - autoUpdater.checkForUpdatesAndNotify() - }, 10000) + // Check for updates right away. + autoUpdater.checkForUpdatesAndNotify() - // Check for an update every 2min. + // Then, every two minuntes... setInterval(() => { autoUpdater.checkForUpdatesAndNotify() }, 120000)