NoTypingAnimation: Fix not working due to broken patches

This commit is contained in:
Nuckyz 2025-09-01 20:53:38 -03:00
parent 17b90beee1
commit 8ebfd9a190
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -11,11 +11,13 @@ export default definePlugin({
name: "NoTypingAnimation",
authors: [Devs.AutumnVN],
description: "Disables the CPU-intensive typing dots animation",
patches: [{
find: "dotCycle",
replacement: {
match: /document.hasFocus\(\)/,
replace: "false"
patches: [
{
find: "dotCycle",
replacement: {
match: /focused:(\i)/g,
replace: (_, focused) => `_focused:${focused}=false`
}
}
}]
]
});