Revert moving parse of command line

to the first line of start function because the move is not necessary
without having the code for using a command line parameter to set Atom to
portable mode.  This belongs on that branch and in that pull request.
This commit is contained in:
Dave Rael
2015-10-22 09:01:56 -06:00
parent 8acb2af055
commit b1d10ef4dc

View File

@@ -12,14 +12,14 @@ yargs = require 'yargs'
console.log = require 'nslog'
start = ->
args = parseCommandLine()
setupAtomHome()
setupCompileCache()
return if handleStartupEventWithSquirrel()
# NB: This prevents Win10 from showing dupe items in the taskbar
app.setAppUserModelId('com.squirrel.atom.atom')
args = parseCommandLine()
addPathToOpen = (event, pathToOpen) ->
event.preventDefault()