From 1abfb5f0cfad7a2c37251c15791cb5eaba51a220 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 25 Sep 2024 23:11:43 +0200 Subject: [PATCH] CustomIdle: fix crash on canary --- src/plugins/customidle/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/customidle/index.ts b/src/plugins/customidle/index.ts index ea56da10..7d353f15 100644 --- a/src/plugins/customidle/index.ts +++ b/src/plugins/customidle/index.ts @@ -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\)/,