diff --git a/src/ui/settings/pages/Developer.tsx b/src/ui/settings/pages/Developer.tsx index 9851093..6769742 100644 --- a/src/ui/settings/pages/Developer.tsx +++ b/src/ui/settings/pages/Developer.tsx @@ -27,7 +27,7 @@ export default function Developer() { return ( - settings.debuggerUrl = v} placeholder="127.0.0.1:9090" @@ -39,23 +39,25 @@ export default function Developer() { leading={} onPress={() => connectToDebugger(settings.debuggerUrl)} /> - - {window.__vendetta_rdc && } - onPress={() => { - try { - window.__vendetta_rdc?.connectToDevTools({ - host: settings.debuggerUrl.split(":")?.[0], - resolveRNStyle: RN.StyleSheet.flatten, - }); - } catch(e) { - // TODO: Check if this ever actually catches anything - logger.error("Failed to connect to React DevTools!", e); - showToast("Failed to connect to React DevTools!", getAssetIDByName("Small")); - } - }} - />} + {window.__vendetta_rdc && <> + + } + onPress={() => { + try { + window.__vendetta_rdc?.connectToDevTools({ + host: settings.debuggerUrl.split(":")?.[0], + resolveRNStyle: RN.StyleSheet.flatten, + }); + } catch (e) { + // TODO: Check if this ever actually catches anything + logger.error("Failed to connect to React DevTools!", e); + showToast("Failed to connect to React DevTools!", getAssetIDByName("Small")); + } + }} + /> + } {window.__vendetta_loader?.features.loaderConfig && - {loaderConfig.customLoadUrl.enabled && loaderConfig.customLoadUrl.url = v} - placeholder="http://localhost:4040/vendetta.js" - title="VENDETTA URL" - />} + + {loaderConfig.customLoadUrl.enabled && <> + loaderConfig.customLoadUrl.url = v} + placeholder="http://localhost:4040/vendetta.js" + title="VENDETTA URL" + /> + + } {window.__vendetta_loader.features.devtools && - {versions.map((v) => ( + {versions.map((v, i) => ( <> - + {i !== versions.length - 1 && } ))} - {platformInfo.map((p) => ( + {platformInfo.map((p, i) => ( <> - + {i !== platformInfo.length - 1 && } ))}