diff options
author | Nico <nico@d3sox.me> | 2023-03-05 22:30:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 22:30:37 +0100 |
commit | a5392e5c53675e5206a4d5fcf97b9d6a8d07727b (patch) | |
tree | 27481df7048613c45810233a280c3a73fae66121 /src/plugins | |
parent | abbd298b31508b9519294dc23b7b19e3df38956b (diff) | |
download | Vencord-a5392e5c53675e5206a4d5fcf97b9d6a8d07727b.tar.gz Vencord-a5392e5c53675e5206a4d5fcf97b9d6a8d07727b.tar.bz2 Vencord-a5392e5c53675e5206a4d5fcf97b9d6a8d07727b.zip |
fix(silentTyping): fix chatbar icon patch (#570)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/silentTyping.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/silentTyping.tsx b/src/plugins/silentTyping.tsx index 78bb92e..83f6415 100644 --- a/src/plugins/silentTyping.tsx +++ b/src/plugins/silentTyping.tsx @@ -82,8 +82,8 @@ export default definePlugin({ find: ".activeCommandOption", predicate: () => settings.store.showIcon, replacement: { - match: /\i=\i\.activeCommand,\i=\i\.activeCommandOption,.{1,133}(.)=\[\];/, - replace: "$&;$1.push($self.chatBarIcon());", + match: /(.)\.push.{1,50}\(\i,\{.{1,30}\},"gift"\)\)/, + replace: "$&;try{$1.push($self.chatBarIcon())}catch{}", } }, ], |