aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/vcDoubleClick.ts
diff options
context:
space:
mode:
authorNico <nico@d3sox.me>2023-02-28 00:41:14 +0100
committerGitHub <noreply@github.com>2023-02-28 00:41:14 +0100
commitcb507babaad57d71cb34c9108c625454c6adbafd (patch)
tree2890eb99b9ac33e726bb737a2a8f6e91fc6a32ab /src/plugins/vcDoubleClick.ts
parent235d1141930c24b8b8dd292a836f5b6f4b622700 (diff)
downloadVencord-cb507babaad57d71cb34c9108c625454c6adbafd.tar.gz
Vencord-cb507babaad57d71cb34c9108c625454c6adbafd.tar.bz2
Vencord-cb507babaad57d71cb34c9108c625454c6adbafd.zip
fix: vcDoubleClick and revealAllSpoilers patch (#517)
Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/vcDoubleClick.ts')
-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 64c676c..695e8c5 100644
--- a/src/plugins/vcDoubleClick.ts
+++ b/src/plugins/vcDoubleClick.ts
@@ -48,7 +48,7 @@ export default definePlugin({
},
{
// channel mentions
- find: ".EMOJI_IN_MESSAGE_HOVER",
+ find: ".shouldCloseDefaultModals",
replacement: {
match: /onClick:(\i)(?=,.{0,30}className:"channelMention")/,
replace: "onClick:(_vcEv)=>(_vcEv.detail>=2||_vcEv.target.className.includes('MentionText'))&&($1)()",