fix PlatformIndicator badge

This commit is contained in:
Vendicated 2026-03-13 15:00:09 +01:00 committed by End
parent ae49ac4067
commit 483d564782
No known key found for this signature in database

View file

@ -95,7 +95,7 @@ export default definePlugin({
replace: "...$1.props,$&"
},
{
match: /(?<=forceOpen:.{0,40}?\i\((\i)\.id\).{0,100}?)children:/,
match: /(?<=forceOpen:.{0,40}?ariaHidden:!0,)children:(?=.{0,50}?(\i)\.id)/,
replace: "children:$1.component?$self.renderBadgeComponent({...$1}) :"
},
// handle onClick and onContextMenu