aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-16 14:52:05 +0100
committerVendicated <vendicated@riseup.net>2022-11-16 14:52:05 +0100
commite1de6f88fe1db5276cee3df2ef4feeca7fcab850 (patch)
treeb6924cb0c6d3246608c65850ccc220b138545555 /src
parentae86848cf6f87585c87d983d5567119ce9e8b50c (diff)
downloadVencord-e1de6f88fe1db5276cee3df2ef4feeca7fcab850.tar.gz
Vencord-e1de6f88fe1db5276cee3df2ef4feeca7fcab850.tar.bz2
Vencord-e1de6f88fe1db5276cee3df2ef4feeca7fcab850.zip
Unexplode Modals on canary
Diffstat (limited to 'src')
-rw-r--r--src/utils/modal.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/modal.tsx b/src/utils/modal.tsx
index 3a22bbe..2affbd7 100644
--- a/src/utils/modal.tsx
+++ b/src/utils/modal.tsx
@@ -56,12 +56,12 @@ interface ModalRootProps {
type RenderFunction = (props: ModalProps) => React.ReactNode;
-export const Modals = mapMangledModuleLazy(".onAnimationEnd,", {
- ModalRoot: filters.byCode("headerIdIsManaged:"),
- ModalHeader: filters.byCode("children", "separator", "wrap", "NO_WRAP", "grow", "shrink", "id", "header"),
- ModalContent: filters.byCode("scrollerRef", "content", "className", "children"),
- ModalFooter: filters.byCode("HORIZONTAL_REVERSE", "START", "STRETCH", "NO_WRAP", "footerSeparator"),
- ModalCloseButton: filters.byCode("closeWithCircleBackground", "hideOnFullscreen"),
+export const Modals = mapMangledModuleLazy("().closeWithCircleBackground", {
+ ModalRoot: filters.byCode("().root"),
+ ModalHeader: filters.byCode("().header"),
+ ModalContent: filters.byCode("().content"),
+ ModalFooter: filters.byCode("().footerSeparator"),
+ ModalCloseButton: filters.byCode("().closeWithCircleBackground"),
});
export const ModalRoot = (props: ModalRootProps) => <Modals.ModalRoot {...props} />;