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

Co-authored-by: Ven <vendicated@riseup.net>
main
Sammy 2 years ago committed by GitHub
parent e219aaa062
commit abbd298b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save