From a5392e5c53675e5206a4d5fcf97b9d6a8d07727b Mon Sep 17 00:00:00 2001 From: Nico Date: Sun, 5 Mar 2023 22:30:37 +0100 Subject: [PATCH] fix(silentTyping): fix chatbar icon patch (#570) --- src/plugins/silentTyping.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/silentTyping.tsx b/src/plugins/silentTyping.tsx index 78bb92ea..83f64153 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{}", } }, ],