From 315a8247e7130c952ed3a717d45786fc6f189959 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Thu, 1 Aug 2024 00:28:05 -0400 Subject: [PATCH] Fix --- src/plugins/webContextMenus.web/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/webContextMenus.web/index.ts b/src/plugins/webContextMenus.web/index.ts index 50652e36..f1ee67dd 100644 --- a/src/plugins/webContextMenus.web/index.ts +++ b/src/plugins/webContextMenus.web/index.ts @@ -23,6 +23,10 @@ import { saveFile } from "@utils/web"; import { findByPropsLazy } from "@webpack"; import { Clipboard, ComponentDispatch } from "@webpack/common"; +let required = false; +if (IS_VESKTOP || IS_EQUIBOP) { + required = true; +} const ctxMenuCallbacks = findByPropsLazy("contextMenuCallbackNative"); async function fetchImage(url: string) { @@ -73,7 +77,7 @@ export default definePlugin({ description: "Re-adds context menus missing in the web version of Discord: Links & Images (Copy/Open Link/Image), Text Area (Copy, Cut, Paste, SpellCheck)", authors: [Devs.Ven], enabledByDefault: true, - required: IS_VESKTOP || IS_EQUIBOP, + required, settings,