From cc257533148419b1c94a1cd257e756d2688a403c Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 4 Oct 2022 00:52:42 +0200 Subject: feat: Experimental browser support --- src/components/Settings.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/components') diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index d4a3dca..4dbb1b2 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -9,6 +9,7 @@ import { startPlugin } from "../plugins"; import { stopPlugin } from '../plugins/index'; import { Flex } from './Flex'; import { ChangeList } from '../utils/ChangeList'; +import { IS_WEB } from '../utils/isWeb'; function showErrorToast(message: string) { Toasts.show({ @@ -72,7 +73,7 @@ export default ErrorBoundary.wrap(function Settings() { SettingsDir: {settingsDir} - + {!IS_WEB && - + } Settings Use QuickCss - settings.notifyAboutUpdates = v} note="Shows a Toast on StartUp" > Get notified about new Updates - - } + {!IS_WEB && settings.unsafeRequire = v} note="Enables VencordNative.require. Useful for testing, very bad for security. Leave this off unless you need it." > Enable Unsafe Require - + } -- cgit