mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 19:45:09 +00:00
Experiments: Fix Link Embeds (#3763)
This commit is contained in:
parent
7c708acf0b
commit
6bbc4783cd
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue