aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-03-13 11:29:45 +0100
committerlain <lain@soykaf.club>2019-03-13 11:29:45 +0100
commit1387dfb889f8b59d7790cf794cb6498a0f308607 (patch)
tree4f9c204e60a8c941b39ad47b1afffd328880ac0c
parentf397537642a6b8a4079d8d45d835ddd50f2d2b4a (diff)
Load persistedStated with async/await.
-rw-r--r--src/main.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.js b/src/main.js
index a3265e3a..9ffc3727 100644
--- a/src/main.js
+++ b/src/main.js
@@ -53,9 +53,10 @@ const persistedStateOptions = {
'users.lastLoginName',
'oauth'
]
-}
+};
-createPersistedState(persistedStateOptions).then((persistedState) => {
+(async () => {
+ const persistedState = await createPersistedState(persistedStateOptions)
const store = new Vuex.Store({
modules: {
interface: interfaceModule,
@@ -75,7 +76,7 @@ createPersistedState(persistedStateOptions).then((persistedState) => {
})
afterStoreSetup({ store, i18n })
-})
+})()
// These are inlined by webpack's DefinePlugin
/* eslint-disable */