Skip to content

Commit 5021a17

Browse files
committed
fix: contextMenu coremod
1 parent d1bd189 commit 5021a17

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/renderer/coremods/contextMenu/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { React, components, lodash } from "@common";
1+
import { React, lodash } from "@common";
2+
import { ContextMenu } from "@components";
23
import type { MenuProps } from "@components/ContextMenu";
34
import type {
45
ContextMenuTypes,
@@ -87,7 +88,7 @@ export function _insertMenuItems(props: ContextMenuProps): ContextMenuProps {
8788
children: lodash.cloneDeep(props.children),
8889
};
8990

90-
const { MenuGroup } = components;
91+
const { MenuGroup } = ContextMenu;
9192
const repluggedGroup = <MenuGroup />;
9293
repluggedGroup.props.children = [];
9394

src/renderer/coremods/contextMenu/plaintextPatches.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ export default [
1212
],
1313
},
1414
{
15-
find: ".Menu,{",
15+
find: "navId:",
1616
replacements: [
1717
{
18-
match: /\.Menu,{/g,
18+
match: /return\(0,\w+\.\w+\)\(\w+\.\w+,{/g,
1919
replace: (prefix) => `${prefix}data:arguments,`,
2020
},
2121
],

0 commit comments

Comments
 (0)