noProfileThemes: fix usrbg compatibility (#1905)

This commit is contained in:
AutumnVN 2023-10-27 03:52:48 +07:00 committed by GitHub
parent 589c070773
commit 2f94e167c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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