mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 21:54:01 +08:00
e80332a2bc
The more parallel the branches, the easier the transition will be.
24 lines
425 B
JavaScript
24 lines
425 B
JavaScript
export const INPUT_DELAY = 250;
|
|
|
|
let environment = "unknown";
|
|
|
|
export function setEnvironment(e) {
|
|
if (isTesting()) {
|
|
environment = "testing";
|
|
} else {
|
|
environment = e;
|
|
}
|
|
}
|
|
|
|
export function isTesting() {
|
|
return Ember.testing || environment === "testing";
|
|
}
|
|
|
|
export function isDevelopment() {
|
|
return environment === "development";
|
|
}
|
|
|
|
export function isProduction() {
|
|
return environment === "production";
|
|
}
|