AccountPanelServerProfile: Fix patch issue with onPopoutClose (#3304)

This commit is contained in:
sadan4 2025-04-04 18:45:19 -04:00 committed by GitHub
parent 9d2f2460e1
commit 71f352a611
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,8 +81,8 @@ export default definePlugin({
replace: (_, rest, popoutProps, originalPopout, currentUser) => `${rest}$self.UserProfile({popoutProps:${popoutProps},currentUser:${currentUser},originalRenderPopout:()=>{${originalPopout}}})`
},
{
match: /\.AVATAR,children:.+?(?=renderPopout:)/,
replace: "$&onRequestClose:$self.onPopoutClose,"
match: /\.AVATAR,children:.+?onRequestClose:\(\)=>\{/,
replace: "$&$self.onPopoutClose();"
},
{
match: /(?<=#{intl::SET_STATUS}\),)/,