From 07f285b05aeb0ac34dedf01875aea1e744460e59 Mon Sep 17 00:00:00 2001 From: yolain <73304135+yolain@users.noreply.github.com> Date: Sun, 16 Mar 2025 22:42:05 +0800 Subject: [PATCH] Fix the litegraph context menu missing prototype after adding translation (#3080) --- src/composables/useContextMenuTranslation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/composables/useContextMenuTranslation.ts b/src/composables/useContextMenuTranslation.ts index 5d26365fe..80a47749b 100644 --- a/src/composables/useContextMenuTranslation.ts +++ b/src/composables/useContextMenuTranslation.ts @@ -101,4 +101,5 @@ export const useContextMenuTranslation = () => { } LiteGraph.ContextMenu = ContextMenu as unknown as typeof LiteGraph.ContextMenu + LiteGraph.ContextMenu.prototype = OriginalContextMenu.prototype }