Skip to content

Commit fa77cda

Browse files
author
Milo Todt
committed
whitespace
1 parent a0bfd9e commit fa77cda

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/main-app.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const electron = require('electron')
22
const app = electron.app
33
const Menu = electron.Menu
44
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
77
// electron.crashReporter.start()
88
var ipcServer = null
99

@@ -36,8 +36,8 @@ const updater = new GhReleases(ghReleasesOpts)
3636
// Check for updates
3737
// `status` returns true if there is a new update available
3838
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')
4141
return true
4242
}
4343
if (process.platform === 'linux' || isUpdateReady) {
@@ -99,12 +99,12 @@ app.on('ready', function () {
9999

100100
// Check update every day
101101
setInterval(function () {
102-
if(!isDev) checkUpdate()
102+
if (!isDev) checkUpdate()
103103
}, 1000 * 60 * 60 * 24)
104104

105105
// Check update after 10 secs to prevent file locking of Windows
106106
setTimeout(() => {
107-
if(!isDev) checkUpdate()
107+
if (!isDev) checkUpdate()
108108

109109
ipc.on('update-check', function (event, msg) {
110110
if (isUpdateReady) {

0 commit comments

Comments
 (0)