SecretRingToneEnabler: Fix patch
This commit is contained in:
parent
54bb7b96e9
commit
a98f12bd1e
1 changed files with 4 additions and 3 deletions
|
@ -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",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue