From 2c1b1f3912dd3502c88fe03d94c09c0362c1d819 Mon Sep 17 00:00:00 2001
From: byeoon <47872200+byeoon@users.noreply.github.com>
Date: Thu, 24 Oct 2024 14:59:02 +0000
Subject: [PATCH] you know whats fucking awesome? not having loaderconfig
enabled because im sideloading. fucking annoying. oh, wanna come up with a
feature? sorry, can't! It'll crash because no FUCKING features are enabled
---
src/ui/settings/pages/Developer.tsx | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/src/ui/settings/pages/Developer.tsx b/src/ui/settings/pages/Developer.tsx
index 4e1c3edd..dcaeba3b 100644
--- a/src/ui/settings/pages/Developer.tsx
+++ b/src/ui/settings/pages/Developer.tsx
@@ -17,7 +17,6 @@ const debugInfo = getDebugInfo();
export default function Developer() {
const navigation = NavigationNative.useNavigation();
- let thevar = "";
//@ts-ignore
useProxy(settings);
//@ts-ignore
@@ -117,25 +116,25 @@ export default function Developer() {
/>
>}
-
+ {window.__vendetta_loader?.features.loaderConfig &&
}
- value={loaderConfig?.customLoadUrl?.enabled}
+ value={loaderConfig.customLoadUrl.enabled}
onValueChange={(v: boolean) => {
loaderConfig.customLoadUrl.enabled = v;
}}
/>
- {loaderConfig?.customLoadUrl.enabled && <>
+ {loaderConfig.customLoadUrl.enabled && <>
loaderConfig.customLoadUrl.url = v}
placeholder="http://localhost:4040/opti.js"
title="Opti URL"
/>
>}
- {window.__vendetta_loader?.features.devtools && }
@@ -144,8 +143,7 @@ export default function Developer() {
loaderConfig.loadReactDevTools = v;
}}
/>}
-
-
+ }
- thevar = v}
- placeholder="Developer"
- title="URL to lead to"
- />
}