]> Repos - mime-chat/commitdiff
enhancements v0.9.1
authorAndrew Gundersen <gundersena@xavier.edu>
Tue, 13 Apr 2021 14:57:32 +0000 (09:57 -0500)
committerAndrew Gundersen <gundersena@xavier.edu>
Tue, 13 Apr 2021 14:57:32 +0000 (09:57 -0500)
package.json
src/background.ts

index b6bdecf7756b1fc02d36efd828484a514f223891..de604183cd344911eb47b4081605503104f57576 100644 (file)
@@ -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"
index be717718229a709b1cd76cbc2df67829105bd742..95db12be533f975cc9a7ae9aef4b20ac5548a8d3 100644 (file)
@@ -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)