noProfileThemes: fix usrbg compatibility (#1905)

main
AutumnVN 1 year ago committed by GitHub
parent 589c070773
commit 2f94e167c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,7 +30,7 @@ export default definePlugin({
// = isPremiumAtLeast(user.premiumType, TIER_2) // = isPremiumAtLeast(user.premiumType, TIER_2)
match: /=(?=\i\.\i\.isPremiumAtLeast\(null==(\i))/, match: /=(?=\i\.\i\.isPremiumAtLeast\(null==(\i))/,
// = user.banner && isPremiumAtLeast(user.premiumType, TIER_2) // = user.banner && isPremiumAtLeast(user.premiumType, TIER_2)
replace: "=$1?.banner&&" replace: "=(arguments[0]?.bannerSrc||$1?.banner)&&"
} }
}, },
{ {

Loading…
Cancel
Save