Skip to content

Commit

Permalink
allow null values in config (fixes #165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Aug 11, 2017
1 parent 1afb1e7 commit 7e7d537
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion terminus-core/src/services/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
3 changes: 3 additions & 0 deletions terminus-terminal/src/services/sessions.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 7e7d537

Please sign in to comment.