[setup] is now an asynchronous Promise()
This commit is contained in:
parent
1baf2b5e06
commit
139184a981
|
@ -5,7 +5,7 @@ import noauth_wrapper from './vue/noauth/wrapper.vue'
|
|||
|
||||
|
||||
/* (1) Setup: Vue, VueRouter, Authentication, ClientDriver-s */
|
||||
require('./setup.js');
|
||||
require('./setup.js').default.then(() => {
|
||||
|
||||
/* (2) Set router hooks to load page data before loading content */
|
||||
gs.get.router.beforeEach((to, from, next) => {
|
||||
|
@ -45,4 +45,6 @@ new Vue({
|
|||
el: '#vue',
|
||||
router: gs.get.router,
|
||||
render(h){ return h(wrapper); }
|
||||
})
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
@ -9,6 +9,8 @@ import XHRClientDriver from './lib/client/xhr.js'
|
|||
import WebSocketClientDriver from './lib/client/ws.js'
|
||||
import APIClient from './lib/api-client.js'
|
||||
|
||||
export default new Promise( (res, rej) => {
|
||||
|
||||
/* (1) Custom lib accessors
|
||||
---------------------------------------------------------*/
|
||||
/* (1) Field validation */
|
||||
|
@ -65,10 +67,6 @@ Notification.requestPermission();
|
|||
window.DEBUG_MOD = false;
|
||||
|
||||
|
||||
res();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
Loading…
Reference in New Issue