From acf06203b6ab5129adc4bf09c7014d888f15944b Mon Sep 17 00:00:00 2001 From: botato <63275405+botatooo@users.noreply.github.com> Date: Sat, 1 Oct 2022 16:05:15 -0700 Subject: [PATCH] some tweaks (#22) --- src/components/Settings.tsx | 20 ++++++++++++++------ src/webpack/webpack.ts | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index 54e6ddb..3e883b9 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -69,10 +69,17 @@ export default ErrorBoundary.wrap(function Settings() { - SettingsDir: {settingsDir} + SettingsDir: {settingsDir} + - + + Settings settings.useQuickCss = v} - note="Enable QuickCss" + onChange={(v: boolean) => settings.useQuickCss = v} + note="Enable QuickCSS" > Use QuickCss settings.notifyAboutUpdates = v} + onChange={(v: boolean) => settings.notifyAboutUpdates = v} note="Shows a Toast on StartUp" > Get notified about new Updates settings.unsafeRequire = v} + onChange={(v: boolean) => settings.unsafeRequire = v} note="Enables VencordNative.require. Useful for testing, very bad for security. Leave this off unless you need it." > Enable Unsafe Require diff --git a/src/webpack/webpack.ts b/src/webpack/webpack.ts index 9be576a..15104bb 100644 --- a/src/webpack/webpack.ts +++ b/src/webpack/webpack.ts @@ -135,7 +135,7 @@ export function search(...filters: Array) { const factories = wreq.m; outer: for (const id in factories) { - const factory = factories[id]; + const factory = factories[id].original ?? factories[id]; const str: string = factory.toString(); for (const filter of filters) { if (typeof filter === "string" && !str.includes(filter)) continue outer;