diff options
author | Sammy <sammy@sammcheese.net> | 2023-03-05 22:05:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 22:05:46 +0100 |
commit | abbd298b31508b9519294dc23b7b19e3df38956b (patch) | |
tree | 1d5810ea235f9f0869f4bcdc690af3a6fbe21990 | |
parent | e219aaa062563202c6b723ada06f115437ab35a7 (diff) | |
download | Vencord-abbd298b31508b9519294dc23b7b19e3df38956b.tar.gz Vencord-abbd298b31508b9519294dc23b7b19e3df38956b.tar.bz2 Vencord-abbd298b31508b9519294dc23b7b19e3df38956b.zip |
Fix(InvisibleChat) Fix chatbar icon patch (closes #560) (#566)
Co-authored-by: Ven <vendicated@riseup.net>
-rw-r--r-- | src/plugins/invisibleChat/index.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
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() { <svg aria-hidden role="img" - width="24" - height="24" + width="32" + height="32" viewBox={"0 0 64 64"} style={{ scale: "1.1" }} > @@ -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{}", } }, ], |