Merge pull request #988 from mbilker/allow-custom-sync-engines

Allow custom Sync Engine specified in `config.cson`
This commit is contained in:
Ben Gotow 2016-01-21 10:31:05 -08:00
commit 03c76cf255

View file

@ -151,6 +151,9 @@ class NylasAPI
else if env in ['local'] else if env in ['local']
@AppID = 'n/a' @AppID = 'n/a'
@APIRoot = 'http://localhost:5555' @APIRoot = 'http://localhost:5555'
else if env in ['custom']
@AppID = NylasEnv.config.get('syncEngine.AppID') or 'n/a'
@APIRoot = NylasEnv.config.get('syncEngine.APIRoot') or 'http://localhost:5555'
current = {@AppID, @APIRoot, @APITokens} current = {@AppID, @APIRoot, @APITokens}