Assign background color, if specified by API

This commit is contained in:
Lance Edgar 2019-11-15 15:10:45 -06:00
parent 55efba432a
commit 67155acf40

View file

@ -47,6 +47,11 @@ export default {
} else if (response.data.user && this.$route.name == 'login') { } else if (response.data.user && this.$route.name == 'login') {
this.$router.push('/') this.$router.push('/')
} }
// set background color, to whatever api said
if (response.data.background_color) {
document.body.style.backgroundColor = response.data.background_color
}
}) })
}, },
mounted: function () { mounted: function () {