aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/pronoundb
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-04-29 02:02:24 +0200
committerVendicated <vendicated@riseup.net>2023-04-29 02:04:00 +0200
commitec72b4c91d422fa95ee93d71f3be839fdad679de (patch)
tree8755f0f52b7a0b25b27324fe3d8c2d9b07f6842a /src/plugins/pronoundb
parentd70d7c7b498b1a08c2b50544e8e7c0ffada86f38 (diff)
downloadVencord-ec72b4c91d422fa95ee93d71f3be839fdad679de.tar.gz
Vencord-ec72b4c91d422fa95ee93d71f3be839fdad679de.tar.bz2
Vencord-ec72b4c91d422fa95ee93d71f3be839fdad679de.zip
PronounDB: Oop, conditional hooks are bad :>
Diffstat (limited to 'src/plugins/pronoundb')
-rw-r--r--src/plugins/pronoundb/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/pronoundb/index.ts b/src/plugins/pronoundb/index.ts
index bc01e1d..227e07d 100644
--- a/src/plugins/pronoundb/index.ts
+++ b/src/plugins/pronoundb/index.ts
@@ -60,7 +60,7 @@ export default definePlugin({
find: ".USER_PROFILE_ACTIVITY",
replacement: {
match: /\).showPronouns/,
- replace: ").showPronouns||true;if(arguments[0].displayProfile)arguments[0].displayProfile.pronouns=$self.useProfilePronouns(arguments[0].user.id)"
+ replace: ").showPronouns||true;const vcPronounce=$self.useProfilePronouns(arguments[0].user.id);if(arguments[0].displayProfile)arguments[0].displayProfile.pronouns=vcPronounce"
}
}
],