diff options
-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{}", } }, ], |