mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-13 08:33:01 -04:00
AccountPanelServerProfile: Fix patch issue with onPopoutClose (#3304)
This commit is contained in:
parent
9d2f2460e1
commit
71f352a611
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ export default definePlugin({
|
||||||
replace: (_, rest, popoutProps, originalPopout, currentUser) => `${rest}$self.UserProfile({popoutProps:${popoutProps},currentUser:${currentUser},originalRenderPopout:()=>{${originalPopout}}})`
|
replace: (_, rest, popoutProps, originalPopout, currentUser) => `${rest}$self.UserProfile({popoutProps:${popoutProps},currentUser:${currentUser},originalRenderPopout:()=>{${originalPopout}}})`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /\.AVATAR,children:.+?(?=renderPopout:)/,
|
match: /\.AVATAR,children:.+?onRequestClose:\(\)=>\{/,
|
||||||
replace: "$&onRequestClose:$self.onPopoutClose,"
|
replace: "$&$self.onPopoutClose();"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /(?<=#{intl::SET_STATUS}\),)/,
|
match: /(?<=#{intl::SET_STATUS}\),)/,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue