fix(user-agent): Don't assume Tasks are spawned from renderer processes #2079

This commit is contained in:
Ben Gotow 2016-04-28 10:34:52 -07:00
parent a69266a75d
commit e238258dcb

View file

@ -78,7 +78,7 @@ class Task
taskPath = require.resolve(taskPath)
taskPath = taskPath.replace(/\\/g, "\\\\")
env = _.extend({}, process.env, {taskPath, userAgent: navigator.userAgent})
env = _.extend({}, process.env, {taskPath, userAgent: 'NylasN1'})
@childProcess = ChildProcess.fork '--eval', [bootstrap], {env, silent: true}
@on "task:log", -> console.log(arguments...)