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

8 lines
215 B
JavaScript

import { helper } from '@ember/component/helper';
import $ from 'consul-ui/config/environment';
export function env([name, def = ''], hash) {
return $[name] != null ? $[name] : def;
}
export default helper(env);