From abbd298b31508b9519294dc23b7b19e3df38956b Mon Sep 17 00:00:00 2001 From: Sammy Date: Sun, 5 Mar 2023 22:05:46 +0100 Subject: Fix(InvisibleChat) Fix chatbar icon patch (closes #560) (#566) Co-authored-by: Ven --- src/plugins/invisibleChat/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/invisibleChat/index.tsx b/src/plugins/invisibleChat/index.tsx index a83d47b..d3358be 100644 --- a/src/plugins/invisibleChat/index.tsx +++ b/src/plugins/invisibleChat/index.tsx @@ -91,8 +91,8 @@ function ChatBarIcon() { @@ -131,8 +131,8 @@ export default definePlugin({ { find: ".activeCommandOption", replacement: { - match: /.=.\.activeCommand,.=.\.activeCommandOption,.{1,133}(.)=\[\];/, - replace: "$&;$1.push($self.chatBarIcon());", + match: /(.)\.push.{1,50}\(\i,\{.{1,30}\},"gift"\)\)/, + replace: "$&;try{$1.push($self.chatBarIcon())}catch{}", } }, ], -- cgit