@@ -2,8 +2,8 @@ const electron = require('electron')
2
2
const app = electron . app
3
3
const Menu = electron . Menu
4
4
const ipc = electron . ipcMain
5
- const GhReleases = require ( 'electron-gh-releases' )
6
- const isDev = require ( 'electron-is-dev' ) //isDev is True if running in development mode. Overide by setting ELECTRON_IS_DEV environment variable to 1
5
+ const GhReleases = require ( 'electron-gh-releases' )
6
+ const isDev = require ( 'electron-is-dev' ) // isDev is True if running in development mode. Overide by setting ELECTRON_IS_DEV environment variable to 1
7
7
// electron.crashReporter.start()
8
8
var ipcServer = null
9
9
@@ -36,8 +36,8 @@ const updater = new GhReleases(ghReleasesOpts)
36
36
// Check for updates
37
37
// `status` returns true if there is a new update available
38
38
function checkUpdate ( ) {
39
- if ( isDev ) { //Prevents app from attempting to update when in dev mode.
40
- console . log ( " Updates are disabled in Development mode, see main-app.js" )
39
+ if ( isDev ) { // Prevents app from attempting to update when in dev mode.
40
+ console . log ( ' Updates are disabled in Development mode, see main-app.js' )
41
41
return true
42
42
}
43
43
if ( process . platform === 'linux' || isUpdateReady ) {
@@ -99,12 +99,12 @@ app.on('ready', function () {
99
99
100
100
// Check update every day
101
101
setInterval ( function ( ) {
102
- if ( ! isDev ) checkUpdate ( )
102
+ if ( ! isDev ) checkUpdate ( )
103
103
} , 1000 * 60 * 60 * 24 )
104
104
105
105
// Check update after 10 secs to prevent file locking of Windows
106
106
setTimeout ( ( ) => {
107
- if ( ! isDev ) checkUpdate ( )
107
+ if ( ! isDev ) checkUpdate ( )
108
108
109
109
ipc . on ( 'update-check' , function ( event , msg ) {
110
110
if ( isUpdateReady ) {
0 commit comments