Fix broken UserSettingsAPI patch

This commit is contained in:
Nuckyz 2025-05-23 22:07:48 -03:00
parent bbeaa461e5
commit 1fdfd6f305
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -30,8 +30,8 @@ export default definePlugin({
replacement: [
// Main setting definition
{
match: /(?<=INFREQUENT_USER_ACTION.{0,20},)useSetting:/,
replace: "userSettingsAPIGroup:arguments[0],userSettingsAPIName:arguments[1],$&"
match: /\.updateAsync\(.+?(?=,useSetting:)/,
replace: "$&,userSettingsAPIGroup:arguments[0],userSettingsAPIName:arguments[1]"
},
// Selective wrapper
{