fix(silentTyping): fix chatbar icon patch (#570)
This commit is contained in:
parent
abbd298b31
commit
a5392e5c53
|
@ -82,8 +82,8 @@ export default definePlugin({
|
||||||
find: ".activeCommandOption",
|
find: ".activeCommandOption",
|
||||||
predicate: () => settings.store.showIcon,
|
predicate: () => settings.store.showIcon,
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\i=\i\.activeCommand,\i=\i\.activeCommandOption,.{1,133}(.)=\[\];/,
|
match: /(.)\.push.{1,50}\(\i,\{.{1,30}\},"gift"\)\)/,
|
||||||
replace: "$&;$1.push($self.chatBarIcon());",
|
replace: "$&;try{$1.push($self.chatBarIcon())}catch{}",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue