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" - /> }