allow null values in config (fixes #165)

This commit is contained in:
Eugene Pankov
2017-08-11 19:47:52 +03:00
parent 1afb1e718b
commit 7e7d537868
2 changed files with 4 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ export class ConfigProxy {
{
enumerable: true,
configurable: false,
get: () => real[key] || defaults[key],
get: () => (real[key] !== undefined) ? real[key] : defaults[key],
set: (value) => {
real[key] = value
}

View File

@@ -221,6 +221,9 @@ export class SessionsService {
}
private getPersistence (): SessionPersistenceProvider {
if (!this.config.store.terminal.persistence) {
return null
}
return this.persistenceProviders.find(x => x.id === this.config.store.terminal.persistence) || null
}
}