enhancements
This commit is contained in:
parent
c3be798dda
commit
809ec5e05a
2 changed files with 5 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue