Skip to content

Commit

Permalink
Fix hiddenArg not working on windows. Closes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee authored Aug 28, 2016
1 parent a88e756 commit a37b813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AutoLaunchWindows.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports =
if fs.existsSync(updateDotExe) and versions.electron
appPath = updateDotExe
arg = " --processStart \"#{path.basename(process.execPath)}\""
hiddenArg = if opts.isHiddenOnLaunch then ' --hidden' else ''
hiddenArg = if opts.isHiddenOnLaunch then ' --process-start-args "--hidden"' else ''
regKey.set opts.appName, Winreg.REG_SZ, "\"#{appPath}\"#{arg}#{hiddenArg}", (err) ->
return reject(err) if err?
resolve()
Expand Down

0 comments on commit a37b813

Please sign in to comment.