SecretRingToneEnabler: Fix patch

This commit is contained in:
Nuckyz 2024-05-03 19:07:43 -03:00 committed by Luna
parent 014179b493
commit 03ed699664

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",
} }
}, },
], ],