Don't set the update query param on Windows

This commit is contained in:
Kevin Sawicki
2014-11-19 15:57:51 -08:00
parent 1406fbfe03
commit 46ff794c8b

View File

@@ -15,7 +15,12 @@ class AutoUpdateManager
constructor: (@version) ->
@state = IdleState
@feedUrl = "https://atom.io/api/updates?version=#{@version}"
if process.platform is 'win32'
# Squirrel for Windows can't handle query params
# https://github.com/Squirrel/Squirrel.Windows/issues/132
@feedUrl = 'https://atom.io/api/updates'
else
@feedUrl = "https://atom.io/api/updates?version=#{@version}"
process.nextTick => @setupAutoUpdater()