mirror of https://github.com/hashicorp/consul
6 lines
170 B
JavaScript
6 lines
170 B
JavaScript
|
import config from './config/environment';
|
||
|
export default function(str) {
|
||
|
const user = window.localStorage.getItem(str);
|
||
|
return user !== null ? user : config[str];
|
||
|
}
|