diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-16 22:27:10 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-16 22:27:10 +0100 |
| commit | 0be2051588a8da939c329af0704a75ea09fae410 (patch) | |
| tree | 28424d21ff86ccb31f05552ba076b5c96b345e10 /src/main.js | |
| parent | 34bc38f0bf76a9add53652f5a7442be4f7fe9851 (diff) | |
| parent | ce5b3d4c924d6e94b6fbde3c50fdb209e4ec1fab (diff) | |
Merge branch 'develop' of ssh.gitgud.io:lambadalambda/pleroma-fe into develop
Diffstat (limited to 'src/main.js')
| -rw-r--r-- | src/main.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.js b/src/main.js index 9917ccd9..dfff1444 100644 --- a/src/main.js +++ b/src/main.js @@ -39,7 +39,8 @@ const store = new Vuex.Store({ api: apiModule, config: configModule }, - plugins: [createPersistedState(persistedStateOptions)] + plugins: [createPersistedState(persistedStateOptions)], + strict: process.env.NODE_ENV !== 'production' }) const routes = [ @@ -72,7 +73,9 @@ new Vue({ window.fetch('/static/config.json') .then((res) => res.json()) - .then(({name, theme}) => { + .then(({name, theme, background, logo}) => { store.dispatch('setOption', { name: 'name', value: name }) store.dispatch('setOption', { name: 'theme', value: theme }) + store.dispatch('setOption', { name: 'background', value: background }) + store.dispatch('setOption', { name: 'logo', value: logo }) }) |
