aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico <nico@d3sox.me>2022-10-25 18:15:21 +0200
committerGitHub <noreply@github.com>2022-10-25 18:15:21 +0200
commite06ba68c40c55feb010598e0b0c4482962cc658e (patch)
treee1bc785954565191cb4337a0c754405602b47ea4
parentd6fe937a709815f624082edb97ba0e83ac3c337c (diff)
downloadVencord-e06ba68c40c55feb010598e0b0c4482962cc658e.tar.gz
Vencord-e06ba68c40c55feb010598e0b0c4482962cc658e.tar.bz2
Vencord-e06ba68c40c55feb010598e0b0c4482962cc658e.zip
fix(vcDoubleClick): add required parentheses (#160)
-rw-r--r--src/plugins/vcDoubleClick.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/vcDoubleClick.ts b/src/plugins/vcDoubleClick.ts
index e822db4..9c9503d 100644
--- a/src/plugins/vcDoubleClick.ts
+++ b/src/plugins/vcDoubleClick.ts
@@ -55,7 +55,7 @@ export default definePlugin({
find: 'className:"channelMention",iconType:(',
replacement: {
match: /onClick:(.{1,3}),/,
- replace: "onClick:(_vcEv)=>_vcEv.detail>=2||_vcEv.target.className.includes('MentionText')&&($1)(),",
+ replace: "onClick:(_vcEv)=>(_vcEv.detail>=2||_vcEv.target.className.includes('MentionText'))&&($1)(),",
}
}
],