consul/ui/packages/consul-ui/app/helpers/env.js

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