fix settings persistence.

pull/291/head
Jason Kulatunga 2 years ago
parent a6208c0d49
commit 28ac3ac7ec

@ -25,7 +25,7 @@ export class TreoConfigService
if (localConfigStr){
//check localstorage for a value
let localConfig = JSON.parse(localConfigStr)
currentScrutinyConfig = Object.assign({}, localConfig, currentScrutinyConfig) // make sure defaults are available if missing from localStorage.
currentScrutinyConfig = Object.assign({}, currentScrutinyConfig, localConfig) // make sure defaults are available if missing from localStorage.
}
// Set the private defaults
this._config = new BehaviorSubject(currentScrutinyConfig);

Loading…
Cancel
Save