fix(experiments): Patch canUseOverrides variable (#11)

This commit is contained in:
megumin 2022-09-16 21:10:39 +01:00 committed by GitHub
parent 204ce6758a
commit b6d2f50dfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;"
}
}]
});