Skip to content

Commit

Permalink
Initialize Vue app only after the configuration has been loaded
Browse files Browse the repository at this point in the history
I was experiencing race conditions in firefox where OidcUserManager was instantiated before the configuration has been resolved.
  • Loading branch information
nscuro committed Mar 22, 2020
1 parent 9f5bcd5 commit 08d122e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ axios.get("static/config.json").then(response => {
Vue.prototype.$dtrack = result.data;
}
);
});

Vue.prototype.$version = version;
Vue.prototype.$version = version;

new Vue({
el: '#app',
router,
template: '<App/>',
components: {
App,
}
,i18n
new Vue({
el: '#app',
router,
template: '<App/>',
components: {
App,
}
,i18n
});
});

0 comments on commit 08d122e

Please sign in to comment.