Fix(InvisibleChat) Fix chatbar icon patch (closes #560) (#566)

Co-authored-by: Ven <vendicated@riseup.net>
This commit is contained in:
Sammy 2023-03-05 22:05:46 +01:00 committed by GitHub
parent e219aaa062
commit abbd298b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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