mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Temp Fix ExportContacts
This commit is contained in:
parent
2ddea2f417
commit
850fadfaba
1 changed files with 14 additions and 11 deletions
|
@ -68,17 +68,20 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "[role=\"tab\"][aria-disabled=\"false\"]",
|
find: "[role=\"tab\"][aria-disabled=\"false\"]",
|
||||||
replacement: {
|
replacement: [
|
||||||
match: /this\.props;return\(/,
|
{
|
||||||
replace: "this.props;console.log(a.Children);return("
|
match: /this\.props;(return\(.*?"aria-label":(\i))/,
|
||||||
}
|
replace: "this.props;console.log($2?.Children);$1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "[role=\"tab\"][aria-disabled=\"false\"]",
|
match: /("aria-label":(\i),children:)(\w+)\.Children\.map\((\w+),\s*this\.renderChildren\)/,
|
||||||
replacement: {
|
replace:
|
||||||
match: /(\w+)\.Children\.map\((\w+),\s*this\.renderChildren\)/,
|
"$1($3 && $3.Children ?" +
|
||||||
replace: "[...$1.Children.map($2,this.renderChildren),$self.addExportButton()]"
|
"($2 === 'Friends' ?" +
|
||||||
|
"[...$3.Children.map($4, this.renderChildren), $self.addExportButton()]" +
|
||||||
|
": [...$3.Children.map($4, this.renderChildren)]) : $3.map($4, this.renderChildren))"
|
||||||
}
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue