Allow logo and accentColor to be set in config/runtimeConfig

This commit is contained in:
N-Pex 2023-04-26 11:39:32 +02:00
parent 6cd47a88c0
commit 61720b8440
9 changed files with 71 additions and 27 deletions

View file

@ -145,10 +145,10 @@ export default {
},
favicon() {
var favicon = 'favicon.ico';
var favicon = this.$config.logo ? this.$config.logo : 'favicon.ico';
if (this.$route.meta.includeFavicon) {
if (this.$matrix.currentRoom) {
favicon = this.$matrix.currentRoom.avatar || 'favicon.ico';
favicon = this.$matrix.currentRoom.avatar || favicon;
}
}
return favicon;