SecretRingToneEnabler: Fix patch

This commit is contained in:
Nuckyz 2024-05-03 19:07:43 -03:00
parent 54bb7b96e9
commit a98f12bd1e
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -14,10 +14,11 @@ export default definePlugin({
authors: [Devs.AndrewDLO, Devs.FieryFlames], authors: [Devs.AndrewDLO, Devs.FieryFlames],
patches: [ patches: [
{ {
find: "call_ringing_beat\"", find: '"call_ringing_beat"',
replacement: { replacement: {
match: /500===\i\(\)\.random\(1,1e3\)/, // FIXME Remove === alternative when it hits stable
replace: "true" match: /500(!==|===)\i\(\)\.random\(1,1e3\)/,
replace: (_, predicate) => predicate === "!==" ? "false" : "true",
} }
}, },
], ],