We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a5dd0 commit ac6de41Copy full SHA for ac6de41
app/initializers/initial-config.js
@@ -5,10 +5,14 @@ import ENV from "../config/environment";
5
export default {
6
name: "initialConfig",
7
initialize: function() {
8
- Ember.$.getJSON(`${ENV.APP.krakenHost}/api/config`, function(j){
9
- ENV.APP.dateFormat = j.config.general.date_format;
10
- ENV.APP.timeFormat = j.config.general.time_format;
11
- ENV.APP.needsFirstRun = !j.config.genesis.firstrun;
12
- });
+ Ember.$.getJSON(`${ENV.APP.krakenHost}/api/config`)
+ .done(function(j) {
+ ENV.APP.dateFormat = j.config.general.date_format;
+ ENV.APP.timeFormat = j.config.general.time_format;
+ ENV.APP.needsFirstRun = !j.config.genesis.firstrun;
13
+ })
14
+ .fail(function() {
15
+ ENV.APP.needsFirstRun = false;
16
+ });
17
}
18
};
0 commit comments