mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Client Fixes (#9064)
* fix loading of payments scripts * improve loading times
This commit is contained in:
@@ -4,7 +4,9 @@ require('babel-polyfill');
|
||||
|
||||
import Vue from 'vue';
|
||||
import AppComponent from './app';
|
||||
import { setup as setupAnalytics } from 'client/libs/analytics';
|
||||
import {
|
||||
setup as setupAnalytics,
|
||||
} from 'client/libs/analytics';
|
||||
import router from './router';
|
||||
import getStore from './store';
|
||||
import StoreModule from './libs/store';
|
||||
@@ -27,11 +29,12 @@ Vue.config.productionTip = IS_PRODUCTION;
|
||||
Vue.use(i18n, {i18nData: window && window['habitica-i18n']});
|
||||
Vue.use(StoreModule);
|
||||
|
||||
setupAnalytics();
|
||||
setupAnalytics(); // just create queues for analytics, no scripts loaded at this time
|
||||
const store = getStore();
|
||||
|
||||
export default new Vue({
|
||||
el: '#app',
|
||||
router,
|
||||
store: getStore(),
|
||||
store,
|
||||
render: h => h(AppComponent),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user