fix spellcheck

This commit is contained in:
Vendicated committed 2026-11-16 22:48:11 +01:00
1 parent 11b074a53a
commit 90fb96f8e5
1 file changed
+1 -1
+1 -1
View File
@@ -32,7 +32,7 @@ addPatch({
find: ".enableSpellCheck",
replacement: {
// if (settings?.enableSpellCheck && isDesktop) { DiscordNative.onSpellcheck(openMenu(props)) } else { e.preventDefault(); openMenu(props) }
match: /else (\i)\.preventDefault\(\),(\i\(\i\))(?<=(\i)\??\.enableSpellCheck.+?)/,
match: /else .{0,20}?(\i)\.preventDefault\(\),(\i\(\i\))(?<=(\i)\??\.enableSpellCheck.+?)/,
replace: "else $self.onSlateContext($1, $3?.enableSpellCheck, () => $2)"
}
}