|
|
@ -19,11 +19,11 @@ export class TreoConfigService
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let currentScrutinyConfig = defaultConfig
|
|
|
|
let currentScrutinyConfig = defaultConfig
|
|
|
|
|
|
|
|
|
|
|
|
let localConfigStr = localStorage.getItem(SCRUTINY_CONFIG_LOCAL_STORAGE_KEY)
|
|
|
|
const localConfigStr = localStorage.getItem(SCRUTINY_CONFIG_LOCAL_STORAGE_KEY)
|
|
|
|
if(localConfigStr){
|
|
|
|
if(localConfigStr){
|
|
|
|
//check localstorage for a value
|
|
|
|
// check localstorage for a value
|
|
|
|
let localConfig = JSON.parse(localConfigStr)
|
|
|
|
const localConfig = JSON.parse(localConfigStr)
|
|
|
|
currentScrutinyConfig = localConfig
|
|
|
|
currentScrutinyConfig = Object.assign({}, localConfig, currentScrutinyConfig) // make sure defaults are available if missing from localStorage.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Set the private defaults
|
|
|
|
// Set the private defaults
|
|
|
|