Credit to omaw

This commit is contained in:
thororen1234 2024-10-18 22:01:20 -04:00
parent 9b44469821
commit 45002e2ad7

View file

@ -82,10 +82,10 @@ export default definePlugin({
},
{
predicate: () => settings.store.showPanel,
find: "this.isJoinableActivity()||",
find: "this.renderEmbeddedActivity()",
replacement: {
match: /(this\.isJoinableActivity\(\).{0,200}children:.{0,50})"div"/,
replace: "$1$self.WrapperComponent"
match: /(?<=children.{0,50})"div"(?=.{0,500}this\.renderEmbeddedActivity\(\))/,
replace: "$self.WrapperComponent"
}
}
],