From a9feed2e4a26dc023d63da43520432e5bef35217 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Tue, 8 Jul 2014 11:41:41 -0700 Subject: [PATCH] Maintain autoUpdater listeners even if the version is in dev mode. This is so we can test the auto-updater --- src/browser/auto-update-manager.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/browser/auto-update-manager.coffee b/src/browser/auto-update-manager.coffee index 208364f23..eefe47483 100644 --- a/src/browser/auto-update-manager.coffee +++ b/src/browser/auto-update-manager.coffee @@ -22,9 +22,6 @@ class AutoUpdateManager if process.platform is 'win32' autoUpdater.checkForUpdates = => @checkForUpdatesShim() - # Only released versions should check for updates. - return if /\w{7}/.test(@version) - autoUpdater.setFeedUrl @feedUrl autoUpdater.on 'checking-for-update', => @@ -44,7 +41,9 @@ class AutoUpdateManager @setState(UPDATE_AVAILABLE_STATE) @emitUpdateAvailableEvent(@getWindows()...) - @check(hidePopups: true) + # Only released versions should check for updates. + unless /\w{7}/.test(@version) + @check(hidePopups: true) # Windows doesn't have an auto-updater, so use this method to shim the events. checkForUpdatesShim: ->