NoTypingAnimation: Fix not working due to broken patches
This commit is contained in:
parent
17b90beee1
commit
8ebfd9a190
1 changed files with 8 additions and 6 deletions
|
|
@ -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`
|
||||
}
|
||||
}
|
||||
}]
|
||||
]
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue