2020-04-29 12:18:21 -04:00
|
|
|
export const INPUT_DELAY = 250;
|
|
|
|
|
2020-06-01 16:33:43 -04:00
|
|
|
let environment = "unknown";
|
|
|
|
|
|
|
|
export function setEnvironment(e) {
|
|
|
|
if (isTesting()) {
|
|
|
|
environment = "testing";
|
|
|
|
} else {
|
|
|
|
environment = e;
|
|
|
|
}
|
|
|
|
}
|
2020-05-29 12:16:05 -04:00
|
|
|
|
|
|
|
export function isTesting() {
|
2021-01-12 10:13:21 -05:00
|
|
|
return Ember.testing || environment === "testing";
|
2020-05-29 12:16:05 -04:00
|
|
|
}
|
|
|
|
|
2021-01-21 15:55:39 -05:00
|
|
|
// Generally means "before we migrated to Ember CLI"
|
|
|
|
let _isLegacy = Ember.VERSION.startsWith("3.12");
|
|
|
|
export function isLegacyEmber() {
|
|
|
|
return _isLegacy;
|
|
|
|
}
|
|
|
|
|
2020-06-01 16:33:43 -04:00
|
|
|
export function isDevelopment() {
|
|
|
|
return environment === "development";
|
|
|
|
}
|
|
|
|
|
|
|
|
export function isProduction() {
|
|
|
|
return environment === "production";
|
|
|
|
}
|