diff options
| author | lain <lain@soykaf.club> | 2019-03-13 11:29:45 +0100 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-03-13 11:29:45 +0100 |
| commit | 1387dfb889f8b59d7790cf794cb6498a0f308607 (patch) | |
| tree | 4f9c204e60a8c941b39ad47b1afffd328880ac0c | |
| parent | f397537642a6b8a4079d8d45d835ddd50f2d2b4a (diff) | |
Load persistedStated with async/await.
| -rw-r--r-- | src/main.js | 7 |
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 */ |
