ProfileSectionsAPI: Fix Patch
This commit is contained in:
parent
563688e2b1
commit
269f1c24f7
3 changed files with 3 additions and 5 deletions
|
|
@ -14,9 +14,9 @@ export default definePlugin({
|
|||
patches: [
|
||||
// dm user sidebar
|
||||
{
|
||||
find: "#{intl::PROVISIONAL_ACCOUNT}),headingIcon:",
|
||||
find: ".SIDEBAR,disableToolbar:",
|
||||
replacement: {
|
||||
match: /(#{intl::USER_PROFILE_MEMBER_SINCE}\),.{0,100}userId:(\i\.id)}\)}\))/,
|
||||
match: /(#{intl::USER_PROFILE_MEMBER_SINCE}\),.{0,100}userId:(\i\.id)\}\)\}\))(?=.{0,200}#{intl::USER_PROFILE_WISHLIST})/,
|
||||
replace: "$1,Vencord.Api.ProfileSections.renderProfileSections({userId:$2,isSideBar:true})",
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -62,8 +62,6 @@ export default definePlugin({
|
|||
|
||||
useEffect(() => {
|
||||
const listener = () => {
|
||||
if (!editorRef?.current) return setSelectedCount(0);
|
||||
|
||||
setSelectedCount(document.getSelection()?.toString()?.length ?? 0);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -15,5 +15,5 @@
|
|||
}
|
||||
|
||||
.vc-charCounter-selected {
|
||||
color: #4285F4
|
||||
color: var(--vc-char-count-selected-color, --brand-500);
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue