aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-04 12:57:39 +0200
committerVendicated <vendicated@riseup.net>2022-10-04 12:57:39 +0200
commit3a9f6926442dd673bfac67424317e04b80bcc0f8 (patch)
tree0e90aea00c456b1352a3aba180035645b76066af /src/components
parente35393b40cdf146644d7a136be422a9a280f56be (diff)
downloadVencord-3a9f6926442dd673bfac67424317e04b80bcc0f8.tar.gz
Vencord-3a9f6926442dd673bfac67424317e04b80bcc0f8.tar.bz2
Vencord-3a9f6926442dd673bfac67424317e04b80bcc0f8.zip
Fix Desktop thinking it's web
I forgor to test host after adding web support
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Settings.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx
index 4dbb1b2..007767e 100644
--- a/src/components/Settings.tsx
+++ b/src/components/Settings.tsx
@@ -9,7 +9,6 @@ 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({
@@ -25,7 +24,7 @@ function showErrorToast(message: string) {
export default ErrorBoundary.wrap(function Settings() {
const [settingsDir, , settingsDirPending] = useAwaiter(() => VencordNative.ipc.invoke<string>(IpcEvents.GET_SETTINGS_DIR), "Loading...");
const settings = useSettings();
- const changes = React.useMemo(() => new ChangeList<string>, []);
+ const changes = React.useMemo(() => new ChangeList<string>(), []);
React.useEffect(() => {
return () => void (changes.hasChanges && Alerts.show({