fix(nylas-api): allow custom Sync Engine specified in config.cson

This commit is contained in:
mbilker 2016-01-13 10:46:54 -05:00
parent b95f1f7cb4
commit bdf545a519

View file

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