mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-22 08:09:12 -05:00
ExportContacts: Shorten Replace
This commit is contained in:
parent
f3d90a8842
commit
6714da52f0
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "fetchRelationships(){",
|
find: "fetchRelationships(){",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(\.then\(\i)=>(\i\.\i\.dispatch\({type:"LOAD_RELATIONSHIPS_SUCCESS"),relationships:(\i\.body)}\)/,
|
match: /(\.then\(\i)=>(\i\.\i\.dispatch\({type:"LOAD_RELATIONSHIPS_SUCCESS",relationships:(\i\.body)}\))/,
|
||||||
replace: "$1=>{$2,relationships:$3}); $self.getContacts($3)}"
|
replace: "$1=>{$2; $self.getContacts($3)}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue