mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-08 06:03:03 -04:00
Fix
This commit is contained in:
parent
ccf9a90f59
commit
910274c357
1 changed files with 8 additions and 6 deletions
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import ErrorBoundary from "@components/ErrorBoundary";
|
import ErrorBoundary from "@components/ErrorBoundary";
|
||||||
|
import { onceDefined } from "@shared/onceDefined";
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import { getCurrentChannel } from "@utils/discord";
|
import { getCurrentChannel } from "@utils/discord";
|
||||||
import { Logger } from "@utils/Logger";
|
import { Logger } from "@utils/Logger";
|
||||||
|
@ -17,15 +18,16 @@ const container = findByPropsLazy("memberSince");
|
||||||
const getCreatedAtDate = findByCodeLazy('month:"short",day:"numeric"');
|
const getCreatedAtDate = findByCodeLazy('month:"short",day:"numeric"');
|
||||||
const locale = findByPropsLazy("getLocale");
|
const locale = findByPropsLazy("getLocale");
|
||||||
const lastSection = findByPropsLazy("lastSection");
|
const lastSection = findByPropsLazy("lastSection");
|
||||||
const { RELEASE_CHANNEL } = window.GLOBAL_ENV;
|
|
||||||
|
|
||||||
let section;
|
let section;
|
||||||
|
|
||||||
if (RELEASE_CHANNEL === "stable") {
|
onceDefined(window, "GLOBAL_ENV", v => {
|
||||||
section = findLazy((m: any) => m.section !== void 0 && Object.values(m).length === 1);
|
if (v.RELEASE_CHANNEL === "stable") {
|
||||||
} else {
|
section = findLazy((m: any) => m.section !== void 0 && Object.values(m).length === 1);
|
||||||
section = findLazy((m: any) => m.section !== void 0 && m.heading !== void 0 && Object.values(m).length === 2);
|
} else {
|
||||||
}
|
section = findLazy((m: any) => m.section !== void 0 && m.heading !== void 0 && Object.values(m).length === 2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "FriendsSince",
|
name: "FriendsSince",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue