Fix broken autoupdater, for reals.

Conflicts:
	spec/auto-update-manager-spec.coffee
	src/browser/auto-update-manager.es6
This commit is contained in:
Karim Hamidou 2017-01-15 17:06:23 -08:00
parent 34e11ffe11
commit 3aa0e231b6
2 changed files with 3 additions and 1 deletions

View file

@ -13,6 +13,8 @@ describe "AutoUpdateManager", ->
return @accounts
if key is 'nylas.identity.id'
return @nylasIdentityId
if key is 'env'
return 'production'
onDidChange: (key, callback) =>
callback()

View file

@ -67,7 +67,7 @@ export default class AutoUpdateManager extends EventEmitter {
const params = this.parameters();
let host = `edgehill.nylas.com`;
if (this.config.settings.env === 'staging') {
if (this.config.get('env') === 'staging') {
host = `edgehill-staging.nylas.com`;
}