diff options
author | Nico <nico@d3sox.me> | 2022-10-25 18:15:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 18:15:21 +0200 |
commit | e06ba68c40c55feb010598e0b0c4482962cc658e (patch) | |
tree | e1bc785954565191cb4337a0c754405602b47ea4 /src | |
parent | d6fe937a709815f624082edb97ba0e83ac3c337c (diff) | |
download | Vencord-e06ba68c40c55feb010598e0b0c4482962cc658e.tar.gz Vencord-e06ba68c40c55feb010598e0b0c4482962cc658e.tar.bz2 Vencord-e06ba68c40c55feb010598e0b0c4482962cc658e.zip |
fix(vcDoubleClick): add required parentheses (#160)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/vcDoubleClick.ts | 2 |
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)(),", } } ], |