From fa77cda0b473bf3a3e5389aa64c9e84a92c2739e Mon Sep 17 00:00:00 2001 From: Milo Todt Date: Sat, 12 Jan 2019 17:59:04 -0800 Subject: [PATCH] whitespace --- lib/main-app.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/main-app.js b/lib/main-app.js index 7a31d282..c5645940 100644 --- a/lib/main-app.js +++ b/lib/main-app.js @@ -2,8 +2,8 @@ const electron = require('electron') const app = electron.app const Menu = electron.Menu const ipc = electron.ipcMain -const GhReleases = require('electron-gh-releases') -const isDev = require('electron-is-dev') //isDev is True if running in development mode. Overide by setting ELECTRON_IS_DEV environment variable to 1 +const GhReleases = require('electron-gh-releases') +const isDev = require('electron-is-dev') // isDev is True if running in development mode. Overide by setting ELECTRON_IS_DEV environment variable to 1 // electron.crashReporter.start() var ipcServer = null @@ -36,8 +36,8 @@ const updater = new GhReleases(ghReleasesOpts) // Check for updates // `status` returns true if there is a new update available function checkUpdate () { - if (isDev){ //Prevents app from attempting to update when in dev mode. - console.log("Updates are disabled in Development mode, see main-app.js") + if (isDev) { // Prevents app from attempting to update when in dev mode. + console.log('Updates are disabled in Development mode, see main-app.js') return true } if (process.platform === 'linux' || isUpdateReady) { @@ -99,12 +99,12 @@ app.on('ready', function () { // Check update every day setInterval(function () { - if(!isDev) checkUpdate() + if (!isDev) checkUpdate() }, 1000 * 60 * 60 * 24) // Check update after 10 secs to prevent file locking of Windows setTimeout(() => { - if(!isDev) checkUpdate() + if (!isDev) checkUpdate() ipc.on('update-check', function (event, msg) { if (isUpdateReady) {