diff options
| author | Henry Jameson <me@hjkos.com> | 2020-12-16 18:25:07 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2020-12-16 18:25:07 +0200 |
| commit | c1977567677385bef3f27ba0f8d20e13e07cd9e9 (patch) | |
| tree | abec6b92fb8be93d96b8211800d0676454bd84e5 /src/App.js | |
| parent | 674c30235020d48b3b852d36f16198978ea4dc88 (diff) | |
Basic no-wallpaper support
Diffstat (limited to 'src/App.js')
| -rw-r--r-- | src/App.js | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -54,13 +54,16 @@ export default { return this.currentUser.background_image || this.$store.state.instance.background }, bgStyle () { - return { - 'background-image': `url(${this.background})` - } - }, - bgAppStyle () { - return { - '--body-background-image': `url(${this.background})` + if ( + this.currentUser.background_image || + ( + this.$store.state.instance.background && + !this.$store.getters.mergedConfig.hideInstanceWallpaper + ) + ) { + return { + '--body-background-image': `url(${this.background})` + } } }, chat () { return this.$store.state.chat.channel.state === 'joined' }, |
