mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 22:05:11 +00:00
USRBG: fix missing background in VC (#3851)
This commit is contained in:
parent
c123efd659
commit
2fb549457b
1 changed files with 9 additions and 1 deletions
|
|
@ -70,6 +70,14 @@ export default definePlugin({
|
|||
replace: "$1.style=$self.getVoiceBackgroundStyles($1);"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
find: '"VideoBackground-web"',
|
||||
predicate: () => settings.store.voiceBackground,
|
||||
replacement: {
|
||||
match: /backgroundColor:.{0,25},\{style:(?=\i\?)/,
|
||||
replace: "$&$self.userHasBackground(arguments[0]?.userId)?null:",
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
|
|
@ -84,7 +92,7 @@ export default definePlugin({
|
|||
},
|
||||
|
||||
getVoiceBackgroundStyles({ className, participantUserId }: any) {
|
||||
if (className.includes("tile_")) {
|
||||
if (className.includes("tile")) {
|
||||
if (this.userHasBackground(participantUserId)) {
|
||||
return {
|
||||
backgroundImage: `url(${this.getImageUrl(participantUserId)})`,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue