2
0
mirror of https://github.com/Eugeny/tabby.git synced 2025-04-18 16:20:27 +08:00

allow null values in config (fixes )

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
terminus-core/src/services
terminus-terminal/src/services

@ -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
}

@ -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
}
}