mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-19 05:43:35 -05:00
Fix
This commit is contained in:
parent
315a8247e7
commit
c507239106
1 changed files with 2 additions and 6 deletions
|
@ -23,10 +23,6 @@ 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) {
|
||||||
|
@ -45,7 +41,7 @@ const settings = definePluginSettings({
|
||||||
description: "Add back the Discord context menus for images, links and the chat input bar",
|
description: "Add back the Discord context menus for images, links and the chat input bar",
|
||||||
// Web slate menu has proper spellcheck suggestions and image context menu is also pretty good,
|
// Web slate menu has proper spellcheck suggestions and image context menu is also pretty good,
|
||||||
// so disable this by default. Vesktop just doesn't, so enable by default
|
// so disable this by default. Vesktop just doesn't, so enable by default
|
||||||
default: IS_VESKTOP,
|
default: IS_VESKTOP || IS_EQUIBOP,
|
||||||
restartNeeded: true
|
restartNeeded: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -77,7 +73,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,
|
required: IS_VESKTOP || IS_EQUIBOP,
|
||||||
|
|
||||||
settings,
|
settings,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue