This commit is contained in:
thororen 2024-08-01 00:28:05 -04:00 committed by GitHub
parent 6046703977
commit 315a8247e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,6 +23,10 @@ import { saveFile } from "@utils/web";
import { findByPropsLazy } from "@webpack"; import { findByPropsLazy } from "@webpack";
import { Clipboard, ComponentDispatch } from "@webpack/common"; import { Clipboard, ComponentDispatch } from "@webpack/common";
let required = false;
if (IS_VESKTOP || IS_EQUIBOP) {
required = true;
}
const ctxMenuCallbacks = findByPropsLazy("contextMenuCallbackNative"); const ctxMenuCallbacks = findByPropsLazy("contextMenuCallbackNative");
async function fetchImage(url: string) { 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)", 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], authors: [Devs.Ven],
enabledByDefault: true, enabledByDefault: true,
required: IS_VESKTOP || IS_EQUIBOP, required,
settings, settings,