Fix SuperReactionTweaks patch
This commit is contained in:
parent
80016180b6
commit
9dd00fb766
|
@ -46,10 +46,10 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: ".hasAvailableBurstCurrency)",
|
find: ".trackEmojiSearchEmpty,200",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=\.useBurstReactionsExperiment.{0,20})useState\(!1\)(?=.+?(\i===\i\.EmojiIntention.REACTION))/,
|
match: /(\.trackEmojiSearchEmpty,200(?=.+?isBurstReaction:(\i).+?(\i===\i\.EmojiIntention.REACTION)).+?\[\2,\i\]=\i\.useState\().+?\)/,
|
||||||
replace: "useState($self.settings.store.superReactByDefault && $1)"
|
replace: (_, rest, isBurstReactionVariable, isReactionIntention) => `${rest}$self.settings.store.superReactByDefault&&${isReactionIntention})`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue