open-consul/ui-v2/app/env.js

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];
}