mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 16:26:08 +08:00
Fix broken autoupdater, for reals.
Conflicts: spec/auto-update-manager-spec.coffee src/browser/auto-update-manager.es6
This commit is contained in:
parent
34e11ffe11
commit
3aa0e231b6
|
@ -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()
|
||||
|
||||
|
|
|
@ -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`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue