mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 02:03:07 +08:00
fix(user-agent): Don't assume Tasks are spawned from renderer processes #2079
This commit is contained in:
parent
a69266a75d
commit
e238258dcb
1 changed files with 1 additions and 1 deletions
|
@ -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...)
|
||||
|
|
Loading…
Reference in a new issue