mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 08:16:09 +08:00
Merge pull request #988 from mbilker/allow-custom-sync-engines
Allow custom Sync Engine specified in `config.cson`
This commit is contained in:
commit
03c76cf255
|
@ -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}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue