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",
|
name: "NoTypingAnimation",
|
||||||
authors: [Devs.AutumnVN],
|
authors: [Devs.AutumnVN],
|
||||||
description: "Disables the CPU-intensive typing dots animation",
|
description: "Disables the CPU-intensive typing dots animation",
|
||||||
patches: [{
|
patches: [
|
||||||
find: "dotCycle",
|
{
|
||||||
replacement: {
|
find: "dotCycle",
|
||||||
match: /document.hasFocus\(\)/,
|
replacement: {
|
||||||
replace: "false"
|
match: /focused:(\i)/g,
|
||||||
|
replace: (_, focused) => `_focused:${focused}=false`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}]
|
]
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue