Allow nightly releases to auto-update

This change removes a bad version check which prevented nightly releases 
to be considered for auto-update checks.  The fix is to only skip 
auto-updates when using a build with a version containing `-dev`.

Fixes #17885
This commit is contained in:
David Wilson
2018-08-20 14:08:54 -07:00
parent a5c4ea993b
commit b84592ba10

View File

@@ -94,7 +94,7 @@ class AutoUpdateManager
scheduleUpdateCheck: ->
# Only schedule update check periodically if running in release version and
# and there is no existing scheduled update check.
unless /\w{7}/.test(@version) or @checkForUpdatesIntervalID
unless /-dev/.test(@version) or @checkForUpdatesIntervalID
checkForUpdates = => @check(hidePopups: true)
fourHours = 1000 * 60 * 60 * 4
@checkForUpdatesIntervalID = setInterval(checkForUpdates, fourHours)