experiments: fix patch
This commit is contained in:
parent
c0a495105e
commit
12ce0c5c2c
1 changed files with 3 additions and 2 deletions
|
|
@ -106,10 +106,11 @@ export default definePlugin({
|
|||
},
|
||||
// Enable experiment embed on sent experiment links
|
||||
{
|
||||
find: '"Clear Treatment "',
|
||||
find: "`Clear Treatment ${",
|
||||
replacement: [
|
||||
{
|
||||
match: /\i\.isStaff\(\)/,
|
||||
// TODO: stable compat optional chaining remove once some time has passed
|
||||
match: /\i\??\.isStaff\(\)/,
|
||||
replace: "true"
|
||||
},
|
||||
// Fix some tricky experiments name causing a client crash
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue