1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 09:56:24 +00:00

fix(silentTyping): fix chatbar icon patch (#570)

This commit is contained in:
Nico 2023-03-05 22:30:37 +01:00 committed by GitHub
parent abbd298b31
commit a5392e5c53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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