silentTyping: fix showIcon toggle (#1898)
This commit is contained in:
parent
25dc25c707
commit
03523446c1
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "ChannelTextAreaButtons",
|
find: "ChannelTextAreaButtons",
|
||||||
|
predicate: () => settings.store.showIcon,
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(\i)\.push.{1,30}disabled:(\i),.{1,20}\},"gift"\)\)/,
|
match: /(\i)\.push.{1,30}disabled:(\i),.{1,20}\},"gift"\)\)/,
|
||||||
replace: "$&,(()=>{try{$2||$1.push($self.chatBarIcon(arguments[0]))}catch{}})()",
|
replace: "$&,(()=>{try{$2||$1.push($self.chatBarIcon(arguments[0]))}catch{}})()",
|
||||||
|
|
Loading…
Reference in a new issue