fix CallTimer (#4280)
This commit is contained in:
parent
bc0791b476
commit
4ab4b793a7
1 changed files with 5 additions and 11 deletions
|
|
@ -81,17 +81,11 @@ export default definePlugin({
|
|||
|
||||
patches: [
|
||||
{
|
||||
find: "renderConnectionStatus(){",
|
||||
replacement: [
|
||||
{
|
||||
match: /(renderConnectionStatus\(\).{0,1000}?lineClamp:1,children:)(\i)(?=,|}\))/,
|
||||
replace: "$1[$2,$self.renderTimer({ channelId: this?.props?.channel?.id })]"
|
||||
},
|
||||
{
|
||||
match: /("RTCConnectionMenu".{0,200}?lineClamp:1,children:)(\i)(?=,|}\))/,
|
||||
replace: "$1[$2,$self.renderTimer({ channelId: this?.props?.channel?.id })]"
|
||||
}
|
||||
]
|
||||
find: '"RTCConnectionMenu"',
|
||||
replacement: {
|
||||
match: /("RTCConnectionMenu".{0,200}?lineClamp:1,children:)(\i)(?=,|}\))/,
|
||||
replace: "$1[$2,$self.renderTimer({ channelId: this?.props?.channel?.id })]"
|
||||
}
|
||||
},
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue