open-nomad/ui/app/services/config.js

15 lines
398 B
JavaScript
Raw Normal View History

import { equal } from '@ember/object/computed';
import Service from '@ember/service';
import { get } from '@ember/object';
2017-09-19 14:47:10 +00:00
import config from '../config/environment';
export default Service.extend({
unknownProperty(path) {
return get(config, path);
},
isDev: equal('environment', 'development'),
isProd: equal('environment', 'production'),
isTest: equal('environment', 'test'),
2017-09-19 14:47:10 +00:00
});