4
2
mirror of https://github.com/getbible/app.git synced 2024-12-22 07:48:55 +00:00

called 'set_settings' mutation on app created hook'

This commit is contained in:
Erastus Amunwe 2020-10-27 22:39:08 +02:00
parent 954b807595
commit b8cd842804

View File

@ -24,6 +24,15 @@ export default {
navbar,
options
},
created(){
const userSettings = localStorage.getItem('settings');
if (userSettings) {
const settings = JSON.parse(userSettings);
this.$store.commit('set_settings', settings);
}
}
}
</script>