From a0f374718716a98a6d8d0fb44a9ca2aa63bb9a03 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sun, 21 Jul 2024 23:42:09 -0400 Subject: [PATCH] require differ even when not on a dev build --- src/components/VencordSettings/PatchHelperTab.tsx | 5 +---- src/equicordplugins/customAppIcons/index.tsx | 12 ++++++------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/components/VencordSettings/PatchHelperTab.tsx b/src/components/VencordSettings/PatchHelperTab.tsx index 50f16af3..88b16716 100644 --- a/src/components/VencordSettings/PatchHelperTab.tsx +++ b/src/components/VencordSettings/PatchHelperTab.tsx @@ -27,10 +27,7 @@ import { Button, Clipboard, Forms, Parser, React, Switch, TextArea, TextInput } import { SettingsTab, wrapTab } from "./shared"; -// Do not include diff in non dev builds (side effects import) -if (IS_DEV) { - var differ = require("diff") as typeof import("diff"); -} +var differ = require("diff") as typeof import("diff"); const findCandidates = debounce(function ({ find, setModule, setError }) { const candidates = search(find); diff --git a/src/equicordplugins/customAppIcons/index.tsx b/src/equicordplugins/customAppIcons/index.tsx index 01dbe4f3..7fc75f9a 100644 --- a/src/equicordplugins/customAppIcons/index.tsx +++ b/src/equicordplugins/customAppIcons/index.tsx @@ -87,12 +87,12 @@ export default definePlugin({ <> How to use? - - Go to { e.preventDefault(); closeAllModals(); FluxDispatcher.dispatch({ type: "USER_SETTINGS_MODAL_SET_SECTION", section: "Appearance" }); }}>Appearance Settings tab. - Scroll down to "In-app Icons" and click on "Preview App Icon". - And upload your own custom icon! - You can only use links when you are uploading your Custom Icon. - + + Go to { e.preventDefault(); closeAllModals(); FluxDispatcher.dispatch({ type: "USER_SETTINGS_MODAL_SET_SECTION", section: "Appearance" }); }}>Appearance Settings tab. + Scroll down to "In-app Icons" and click on "Preview App Icon". + And upload your own custom icon! + You can only use links when you are uploading your Custom Icon. + ); } });