mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
14 lines
323 B
JavaScript
14 lines
323 B
JavaScript
import Ember from 'ember';
|
|
import config from '../config/environment';
|
|
|
|
const { Service, get, computed } = Ember;
|
|
|
|
export default Service.extend({
|
|
unknownProperty(path) {
|
|
return get(config, path);
|
|
},
|
|
|
|
isDev: computed.equal('environment', 'development'),
|
|
isProd: computed.equal('environment', 'production'),
|
|
});
|