aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegumin <megumin.bakaretsurie@gmail.com>2022-09-16 21:10:39 +0100
committerGitHub <noreply@github.com>2022-09-16 22:10:39 +0200
commitb6d2f50dfc1176dc92383f65bce5c9ff857ad2f7 (patch)
treead89524ea4854b6c4327b9498be8e0e97c475f36
parent204ce6758a4d03eb4cb2b5535833f4d34e2014a4 (diff)
downloadVencord-b6d2f50dfc1176dc92383f65bce5c9ff857ad2f7.tar.gz
Vencord-b6d2f50dfc1176dc92383f65bce5c9ff857ad2f7.tar.bz2
Vencord-b6d2f50dfc1176dc92383f65bce5c9ff857ad2f7.zip
fix(experiments): Patch canUseOverrides variable (#11)
-rw-r--r--src/plugins/experiments.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/experiments.ts b/src/plugins/experiments.ts
index 9db2e05..c3b814e 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;"
+ }
}]
});