@@ -247,41 +247,22 @@ app.on('ready', function () {
247247 Menu . setApplicationMenu ( menu )
248248 }
249249
250- if ( process . platform === 'darwin' ) {
251- setInterval ( function ( ) {
252- if ( update == null ) autoUpdater . checkForUpdates ( )
253- } , 1000 * 60 * 60 * 24 )
254-
255- ipc . on ( 'check-update' , function ( event , msg ) {
256- if ( update == null ) autoUpdater . checkForUpdates ( )
257- } )
258-
259- ipc . on ( 'update-app' , function ( event , msg ) {
260- if ( update != null ) {
261- appQuit = true
262- update ( )
263- }
264- } )
265-
266- autoUpdater . checkForUpdates ( )
267- } else if ( process . platform === 'win32' ) {
268- setInterval ( function ( ) {
269- checkUpdate ( )
270- } , 1000 * 60 * 60 * 24 )
250+ setInterval ( function ( ) {
251+ checkUpdate ( )
252+ } , 1000 * 60 * 60 * 24 )
271253
272- ipc . on ( 'check-update' , function ( event , msg ) {
273- if ( update == null ) checkUpdate ( )
274- } )
254+ ipc . on ( 'check-update' , function ( event , msg ) {
255+ if ( update == null ) checkUpdate ( )
256+ } )
275257
276- ipc . on ( 'update-app' , function ( event , msg ) {
277- if ( isUpdateReady ) {
278- appQuit = true
279- updater . install ( )
280- }
281- } )
258+ ipc . on ( 'update-app' , function ( event , msg ) {
259+ if ( isUpdateReady ) {
260+ appQuit = true
261+ updater . install ( )
262+ }
263+ } )
282264
283- checkUpdate ( )
284- }
265+ checkUpdate ( )
285266
286267 mainWindow = require ( './atom-lib/main-window' )
287268 if ( process . platform === 'win32' ) {
0 commit comments