1b512badd7
* Add new getEnvironment util/function * Use new-ish `env` function in all the places * Clean up ember env file, add year detection from commit date
7 lines
207 B
JavaScript
7 lines
207 B
JavaScript
import { helper } from '@ember/component/helper';
|
|
import { env } from 'consul-ui/env';
|
|
export default helper(function([name, def = ''], hash) {
|
|
const val = env(name);
|
|
return val != null ? val : def;
|
|
});
|