CustomIdle: fix crash on canary

This commit is contained in:
Vendicated 2024-09-25 23:11:43 +02:00
parent cb2848f186
commit 1abfb5f0cf
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -37,8 +37,8 @@ export default definePlugin({
find: 'type:"IDLE",idle:',
replacement: [
{
match: /(?<=Date\.now\(\)-\i>)\i\.\i/,
replace: "$self.getIdleTimeout()"
match: /(?<=Date\.now\(\)-\i>)\i\.\i\|\|/,
replace: "$self.getIdleTimeout()||"
},
{
match: /Math\.min\((\i\.\i\.getSetting\(\)\*\i\.\i\.\i\.SECOND),\i\.\i\)/,