mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-21 20:37:02 -04:00
fix things using lodash (#1882)
This commit is contained in:
parent
9c13befcb6
commit
c7a20769f9
4 changed files with 8 additions and 6 deletions
|
@ -25,7 +25,7 @@ import { proxyLazy } from "@utils/lazy";
|
|||
import { Logger } from "@utils/Logger";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { findByCodeLazy, findByPropsLazy, findLazy, findStoreLazy } from "@webpack";
|
||||
import { ChannelStore, EmojiStore, FluxDispatcher, Parser, PermissionStore, UserStore } from "@webpack/common";
|
||||
import { ChannelStore, EmojiStore, FluxDispatcher, lodash, Parser, PermissionStore, UserStore } from "@webpack/common";
|
||||
import type { Message } from "discord-types/general";
|
||||
import { applyPalette, GIFEncoder, quantize } from "gifenc";
|
||||
import type { ReactElement, ReactNode } from "react";
|
||||
|
@ -532,7 +532,7 @@ export default definePlugin({
|
|||
};
|
||||
|
||||
try {
|
||||
return modifyChildren(window._.cloneDeep(content));
|
||||
return modifyChildren(lodash.cloneDeep(content));
|
||||
} catch (err) {
|
||||
new Logger("FakeNitro").error(err);
|
||||
return content;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue