diff options
author | Nico <nico@d3sox.me> | 2022-10-25 18:09:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 18:09:21 +0200 |
commit | d6fe937a709815f624082edb97ba0e83ac3c337c (patch) | |
tree | 0f224423058665115f88ea2aee88d47802464535 /src | |
parent | 2f46b934c960f4289cd72db225a060d4c2093406 (diff) | |
download | Vencord-d6fe937a709815f624082edb97ba0e83ac3c337c.tar.gz Vencord-d6fe937a709815f624082edb97ba0e83ac3c337c.tar.bz2 Vencord-d6fe937a709815f624082edb97ba0e83ac3c337c.zip |
fix(vcDoubleClick): exclude text channel mentions (#159)
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 3600ac1..e822db4 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&&($1)(),", + replace: "onClick:(_vcEv)=>_vcEv.detail>=2||_vcEv.target.className.includes('MentionText')&&($1)(),", } } ], |