this repo has no description

fix experiments

Changed files
+3 -20
packages
core-extensions
src
experiments
+3 -20
packages/core-extensions/src/experiments/index.ts
···
export const patches: Patch[] = [
{
-
find: /\.displayName="(Developer)?ExperimentStore"/,
+
find: "isStaffEnv:",
replace: {
-
match: "window.GLOBAL_ENV.RELEASE_CHANNEL",
-
replacement: '"staging"'
+
match: /.\.isStaff\(\)/,
+
replacement: "!0"
}
-
},
-
{
-
find: '.displayName="DeveloperExperimentStore"',
-
replace: [
-
{
-
match: /CONNECTION_OPEN:.,OVERLAY_INITIALIZE:.,CURRENT_USER_UPDATE:./,
-
replacement: ""
-
},
-
{
-
match: '"production"',
-
replacement: '"development"'
-
},
-
{
-
match: /(get:function\(\){return .}}}\);).\(\);/,
-
replacement: "$1"
-
}
-
]
}
];