From b6d2f50dfc1176dc92383f65bce5c9ff857ad2f7 Mon Sep 17 00:00:00 2001 From: megumin Date: Fri, 16 Sep 2022 21:10:39 +0100 Subject: [PATCH] fix(experiments): Patch canUseOverrides variable (#11) --- src/plugins/experiments.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/experiments.ts b/src/plugins/experiments.ts index 9db2e0585..c3b814e33 100644 --- a/src/plugins/experiments.ts +++ b/src/plugins/experiments.ts @@ -10,5 +10,11 @@ export default definePlugin({ match: /(?<={isDeveloper:\{[^}]+,get:function\(\)\{return )\w/, replace: "true" } + }, { + find: "canUseOverrides", + replacement: { + match: /(\w)\|\|"CONNECTION_OPEN".+?;/g, + replace: "$1=!0;" + } }] });