From e238258dcbeec36ed4699bbb70fe8ad826b53bb2 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 28 Apr 2016 10:34:52 -0700 Subject: [PATCH] fix(user-agent): Don't assume Tasks are spawned from renderer processes #2079 --- src/task.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/task.coffee b/src/task.coffee index d0ef44383..fb48ce5f2 100644 --- a/src/task.coffee +++ b/src/task.coffee @@ -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...)