mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
Fix Section
This commit is contained in:
parent
94339abefa
commit
ccf9a90f59
1 changed files with 9 additions and 1 deletions
|
@ -17,7 +17,15 @@ const container = findByPropsLazy("memberSince");
|
|||
const getCreatedAtDate = findByCodeLazy('month:"short",day:"numeric"');
|
||||
const locale = findByPropsLazy("getLocale");
|
||||
const lastSection = findByPropsLazy("lastSection");
|
||||
const section = findLazy((m: any) => m.section !== void 0 && Object.values(m).length === 1) || findLazy((m: any) => m.section !== void 0 && m.heading !== void 0 && Object.values(m).length === 2);
|
||||
const { RELEASE_CHANNEL } = window.GLOBAL_ENV;
|
||||
|
||||
let section;
|
||||
|
||||
if (RELEASE_CHANNEL === "stable") {
|
||||
section = findLazy((m: any) => m.section !== void 0 && Object.values(m).length === 1);
|
||||
} else {
|
||||
section = findLazy((m: any) => m.section !== void 0 && m.heading !== void 0 && Object.values(m).length === 2);
|
||||
}
|
||||
|
||||
export default definePlugin({
|
||||
name: "FriendsSince",
|
||||
|
|
Loading…
Reference in a new issue