mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Remove logging
This commit is contained in:
@@ -34,7 +34,6 @@ installContextMenu = (callback) ->
|
||||
spawnReg = (args, callback) ->
|
||||
args.unshift('add')
|
||||
regProcess = ChildProcess.spawn('reg.exe', args)
|
||||
console.log args
|
||||
|
||||
error = null
|
||||
regProcess.on 'error', (processError) -> error ?= processError
|
||||
@@ -46,12 +45,11 @@ installContextMenu = (callback) ->
|
||||
installFileMenu = (callback) ->
|
||||
args = [fileKeyPath, '/ve', '/d', 'Open with Atom', '/f']
|
||||
spawnReg args, (error) ->
|
||||
console.log 'done'
|
||||
# return callback(error) if error?
|
||||
return callback(error) if error?
|
||||
|
||||
args = [fileKeyPath, '/v', 'Icon', '/d', process.execPath, '/f']
|
||||
spawnReg args, (error) ->
|
||||
# return callback(error) if error?
|
||||
return callback(error) if error?
|
||||
|
||||
args = ["#{fileKeyPath}\\command", '/ve', '/d', process.execPath, '/f']
|
||||
spawnReg(args, callback)
|
||||
@@ -63,8 +61,7 @@ exports.handleStartupEvent = ->
|
||||
switch process.argv[1]
|
||||
when '--squirrel-install', '--squirrel-updated'
|
||||
exports.spawn ['--createShortcut', exeName], ->
|
||||
installContextMenu (error) ->
|
||||
console.log(error) if error?
|
||||
installContextMenu ->
|
||||
app.quit()
|
||||
true
|
||||
when '--squirrel-uninstall'
|
||||
|
||||
Reference in New Issue
Block a user