Experiments: Fix Link Embeds (#3763)

This commit is contained in:
thororen 2025-11-04 13:18:30 -05:00 committed by GitHub
parent 7c708acf0b
commit 6bbc4783cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,7 +106,7 @@ export default definePlugin({
},
// Enable experiment embed on sent experiment links
{
find: "dev://experiment/",
find: ".experimentOverride,children:",
replacement: [
{
match: /\i\.isStaff\(\)/,
@ -114,7 +114,7 @@ export default definePlugin({
},
// Fix some tricky experiments name causing a client crash
{
match: /.getExperimentBucketName.+?if\(null==(\i)\|\|null==\i(?=\)return null;)/,
match: /\.isStaffPersonal\(\).+?if\(null==(\i)\|\|null==\i(?=\)return null;)/,
replace: "$&||({})[$1]!=null"
}
]