SecretRingToneEnabler: Fix patch

main
Nuckyz 6 months ago
parent 54bb7b96e9
commit a98f12bd1e
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

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

Loading…
Cancel
Save